summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 61d31ed)
raw | patch | inline | side by side (parent: 61d31ed)
author | binarymaster <x86corez@gmail.com> | |
Tue, 26 Sep 2017 11:00:52 +0000 (14:00 +0300) | ||
committer | binarymaster <x86corez@gmail.com> | |
Tue, 26 Sep 2017 11:00:52 +0000 (14:00 +0300) |
src/editor/f_main.pas | patch | blob | history |
diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas
index a87747362f596fca53cb69bac2bb2c58b5b59b29..ab72ebed255b1f37ebdc343f7d1b789e295fd384 100644 (file)
--- a/src/editor/f_main.pas
+++ b/src/editor/f_main.pas
begin
config := TConfig.CreateFile(EditorDir+'Editor.cfg');
- config.WriteInt('Editor', 'XPos', Left);
- config.WriteInt('Editor', 'YPos', Top);
- config.WriteInt('Editor', 'Width', Width);
- config.WriteInt('Editor', 'Height', Height);
+ if WindowState <> wsMaximized then
+ begin
+ config.WriteInt('Editor', 'XPos', Left);
+ config.WriteInt('Editor', 'YPos', Top);
+ config.WriteInt('Editor', 'Width', Width);
+ config.WriteInt('Editor', 'Height', Height);
+ end;
config.WriteBool('Editor', 'Maximize', WindowState = wsMaximized);
config.WriteBool('Editor', 'Minimap', ShowMap);
config.WriteInt('Editor', 'PanelProps', PanelProps.ClientWidth);