Skip to content

Commit 571c671

Browse files
committed
enhance: position session manager centered over main form, ignore position set by user
1 parent ff6050f commit 571c671

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

source/connections.lfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ object connform: Tconnform
1212
Constraints.MinHeight = 338
1313
Constraints.MinWidth = 550
1414
DesignTimePPI = 120
15+
Position = poMainFormCenter
1516
ShowHint = True
1617
OnClose = FormClose
1718
OnCloseQuery = FormCloseQuery

source/connections.pas

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,6 @@ procedure Tconnform.FormCreate(Sender: TObject);
291291
begin
292292
Width := AppSettings.ReadInt(asSessionManagerWindowWidth);
293293
Height := AppSettings.ReadInt(asSessionManagerWindowHeight);
294-
Left := AppSettings.ReadInt(asSessionManagerWindowLeft, '', Left);
295-
Top := AppSettings.ReadInt(asSessionManagerWindowTop, '', Top);
296294
// Move to visible area if window was on a now plugged off monitor previously
297295
MakeFullyVisible;
298296
pnlLeft.Width := AppSettings.ReadInt(asSessionManagerListWidth);
@@ -491,8 +489,6 @@ procedure Tconnform.FormDestroy(Sender: TObject);
491489
AppSettings.WriteInt(asSessionManagerListWidth, ScaleFormToDesign(pnlLeft.Width));
492490
AppSettings.WriteInt(asSessionManagerWindowWidth, ScaleFormToDesign(Width));
493491
AppSettings.WriteInt(asSessionManagerWindowHeight, ScaleFormToDesign(Height));
494-
AppSettings.WriteInt(asSessionManagerWindowLeft, ScaleFormToDesign(Left));
495-
AppSettings.WriteInt(asSessionManagerWindowTop, ScaleFormToDesign(Top));
496492
SaveListSetup(ListSessions);
497493
end;
498494

0 commit comments

Comments
 (0)