Skip to content

Commit

Permalink
simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Nov 26, 2022
1 parent 35f1d80 commit 29fa922
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions app/formmain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2889,17 +2889,13 @@ procedure TfmMain.DoCloseAllTabs_Old;
function TfmMain.DoCloseAllTabs: boolean;
var
List: array of TATGroups;
Grp: TATGroups;
i: integer;
begin
Result:= false;
List:= [Groups, GroupsF1, GroupsF2, GroupsF3];
for i:= High(List) downto 0 do
if Assigned(List[i]) then
begin
Grp:= TATGroups(List[i]);
if not Grp.CloseTabs(tabCloseAll, false) then exit;
end;
if not List[i].CloseTabs(tabCloseAll, false) then exit;
Result:= true;
end;

Expand Down

0 comments on commit 29fa922

Please sign in to comment.