mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 06:09:15 +02:00
fpcunit: Restore the window state before the "now" parameter. Issue #27887, patch from Graeme Geldenhuys.
git-svn-id: trunk@48801 -
This commit is contained in:
parent
ba96526733
commit
a92b133845
@ -425,13 +425,14 @@ end;
|
||||
|
||||
procedure TGUITestRunner.GUITestRunnerShow(Sender: TObject);
|
||||
begin
|
||||
if (ParamStrUTF8(1) = '--now') or (ParamStrUTF8(1) = '-n') then
|
||||
RunExecute(Self);
|
||||
// restore last used position and size
|
||||
Left := FConfStore.ReadInteger('WindowState', 'Left', Left);
|
||||
Top := FConfStore.ReadInteger('WindowState', 'Top', Top);
|
||||
Width := FConfStore.ReadInteger('WindowState', 'Width', Width);
|
||||
Height := FConfStore.ReadInteger('WindowState', 'Height', Height);
|
||||
|
||||
if (ParamStrUTF8(1) = '--now') or (ParamStrUTF8(1) = '-n') then
|
||||
RunExecute(Self);
|
||||
end;
|
||||
|
||||
procedure TGUITestRunner.MenuItem3Click(Sender: TObject);
|
||||
|
Loading…
Reference in New Issue
Block a user