mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:19:37 +02:00
win32: call Application.ModalStarted/Finished in Save/RestoreApplicationState
git-svn-id: trunk@52299 -
This commit is contained in:
parent
3d8cc7c21c
commit
79acb53c1d
@ -169,6 +169,7 @@ begin
|
||||
Result.ActiveWindow := Windows.GetActiveWindow;
|
||||
Result.FocusedWindow := Windows.GetFocus;
|
||||
Result.DisabledWindows := Screen.DisableForms(nil);
|
||||
Application.ModalStarted;
|
||||
end;
|
||||
|
||||
procedure RestoreApplicationState(AState: TApplicationState);
|
||||
@ -176,6 +177,7 @@ begin
|
||||
Screen.EnableForms(AState.DisabledWindows);
|
||||
Windows.SetActiveWindow(AState.ActiveWindow);
|
||||
Windows.SetFocus(AState.FocusedWindow);
|
||||
Application.ModalFinished;
|
||||
end;
|
||||
|
||||
// The size of the OPENFILENAME record depends on the windows version
|
||||
|
Loading…
Reference in New Issue
Block a user