mirror of https://gitlab.com/basile.b/dexed.git
workaround for the patch mentioned in fed331360c
ResotreLayout is part of the anchordocking library. get rid of them programmatically in CE.
This commit is contained in:
parent
6f07938faa
commit
5d621ebf45
|
@ -658,6 +658,7 @@ begin
|
||||||
if not fInitialized then exit;
|
if not fInitialized then exit;
|
||||||
if not Visible then exit;
|
if not Visible then exit;
|
||||||
//
|
//
|
||||||
|
DockMaster.RestoreLayouts.Clear;
|
||||||
if WindowState = wsMinimized then WindowState := wsNormal;
|
if WindowState = wsMinimized then WindowState := wsNormal;
|
||||||
// does not save minimized/undocked windows to prevent bugs
|
// does not save minimized/undocked windows to prevent bugs
|
||||||
for i:= 0 to fWidgList.Count-1 do
|
for i:= 0 to fWidgList.Count-1 do
|
||||||
|
@ -1610,6 +1611,7 @@ begin
|
||||||
//
|
//
|
||||||
xcfg := TXMLConfigStorage.Create(aFilename, true);
|
xcfg := TXMLConfigStorage.Create(aFilename, true);
|
||||||
try
|
try
|
||||||
|
DockMaster.RestoreLayouts.Clear;
|
||||||
DockMaster.LoadLayoutFromConfig(xcfg, false);
|
DockMaster.LoadLayoutFromConfig(xcfg, false);
|
||||||
finally
|
finally
|
||||||
xcfg.Free;
|
xcfg.Free;
|
||||||
|
@ -1621,6 +1623,7 @@ var
|
||||||
xcfg: TXMLConfigStorage;
|
xcfg: TXMLConfigStorage;
|
||||||
i: NativeInt;
|
i: NativeInt;
|
||||||
begin
|
begin
|
||||||
|
DockMaster.RestoreLayouts.Clear;
|
||||||
for i:= 0 to fWidgList.Count-1 do
|
for i:= 0 to fWidgList.Count-1 do
|
||||||
begin
|
begin
|
||||||
if not fWidgList.widget[i].isDockable then continue;
|
if not fWidgList.widget[i].isDockable then continue;
|
||||||
|
|
Loading…
Reference in New Issue