fix #50, "Reset default layout" did not work properly

very old regression
This commit is contained in:
Basile Burg 2022-07-03 14:23:49 +02:00
parent e0b599aea9
commit d60a2cceee
2 changed files with 11 additions and 3 deletions

View File

@ -7,7 +7,8 @@
## Regressions fixed ## Regressions fixed
- Editor, line clicked when adding a breakpoint unexpectedly vertically centered ( - Editor, line clicked when adding a breakpoint unexpectedly vertically centered.
- Window menu, "Reset default layout", did not work anymore. (#50)
# v3.9.21 # v3.9.21

View File

@ -1780,14 +1780,21 @@ begin
begin begin
w := fWidgList.widget[i]; w := fWidgList.widget[i];
if not w.isDockable then if not w.isDockable then
begin
if not w.isModal then
w.showWidget;
continue; continue;
if not w.Visible then end;
continue; w.showWidget;
w.Show;
if w = fEditWidg then if w = fEditWidg then
continue; continue;
h := DockMaster.GetAnchorSite(w); h := DockMaster.GetAnchorSite(w);
if h.isAssigned then if h.isAssigned then
h.ManualFloat(w.ClientRect, false); h.ManualFloat(w.ClientRect, false);
// this should be made automatically but fixes
// https://gitlab.com/basile.b/dexed/-/issues/50
h.pages.Free;
end; end;
end; end;