From: binarymaster Date: Tue, 26 Sep 2017 11:00:52 +0000 (+0300) Subject: Main: Save coords only when not maximized X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=a26127e6f072c41c76ea5ce4f15fb768286f0ea8;p=d2df-editor.git Main: Save coords only when not maximized --- diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas index a877473..ab72ebe 100644 --- a/src/editor/f_main.pas +++ b/src/editor/f_main.pas @@ -4033,10 +4033,13 @@ var 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);