mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Bug [ 1702740 ] Востановление позции окна Lin&Win
TODO: need uglobs.pas revision: consts cTopBorder/LeftBorder
This commit is contained in:
parent
a436c59c18
commit
43a01b6707
2 changed files with 6 additions and 3 deletions
|
|
@ -511,8 +511,8 @@ begin
|
|||
gIni.WriteString('right', 'path', FrameRight.pnlFile.ActiveDir);
|
||||
(* /Save Paths *)
|
||||
|
||||
gIni.WriteInteger('Configuration', 'Main.Left', Left+cLeftBorder);// border!!
|
||||
gIni.WriteInteger('Configuration', 'Main.Top', Top+cTopBorder); // border!!
|
||||
gIni.WriteInteger('Configuration', 'Main.Left', Left);
|
||||
gIni.WriteInteger('Configuration', 'Main.Top', Top);
|
||||
gIni.WriteInteger('Configuration', 'Main.Width', Width);
|
||||
gIni.WriteInteger('Configuration', 'Main.Height', Height);
|
||||
end;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,10 @@ unit uGlobs;
|
|||
interface
|
||||
uses
|
||||
Classes, uExts, uColorExt, Graphics, IniFiles;
|
||||
|
||||
const
|
||||
// TODO: It's really need?
|
||||
// SaveRect and SaveGlobs depends on this
|
||||
cTopBorder = 23; // px on top is title
|
||||
cLeftBorder = 6; // px on left
|
||||
|
||||
|
|
@ -89,7 +92,7 @@ end;
|
|||
|
||||
procedure SaveRect(ARect:TRect; sPrefix:String);
|
||||
begin
|
||||
|
||||
// TODO: It is really need to add cLeftBorder/cTopBorder ? for what?
|
||||
gIni.WriteInteger('Configuration', sPrefix+'left', ARect.Left + cLeftBorder);
|
||||
gIni.WriteInteger('Configuration', sPrefix+'top', ARect.Top + cTopBorder);
|
||||
// warning Bottom = height rigth = width, TRect is used only for simplification
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue