Skip to content

Commit

Permalink
fixing #5373
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Jan 23, 2024
1 parent a401480 commit 4d2bcfe
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions app/formmain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -6294,9 +6294,16 @@ procedure TfmMain.DoToggleSidePanel;
with AppPanels[TAppPanelId.Side] do
begin
Visible:= not Visible;
if not Visible then
if Visible then
begin
if LastActivePanel='' then
UpdatePanels(msgPanelTree_Init, false, true);
end
else
begin
if ActiveControl=nil then
DoFocusEditor(CurrentEditor);
end;
end;
end;

Expand All @@ -6305,9 +6312,16 @@ procedure TfmMain.DoToggleBottomPanel;
with AppPanels[TAppPanelId.Btm] do
begin
Visible:= not Visible;
if not Visible then
if Visible then
begin
if LastActivePanel='' then
UpdatePanels(msgPanelConsole_Init, false, true);
end
else
begin
if ActiveControl=nil then
DoFocusEditor(CurrentEditor);
end;
end;
end;

Expand Down

0 comments on commit 4d2bcfe

Please sign in to comment.