Skip to content

Commit 6f5a2d1

Browse files
committed
fix: Prevent host sub-tabs from getting disabled on macOS
Refs #2339
1 parent df80dbf commit 6f5a2d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

source/main.pas

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4230,6 +4230,10 @@ function TMainform.InitConnection(Params: TConnectionParameters; ActivateMe: Boo
42304230
if ActivateMe then begin
42314231
// Set focus on last uses db. If not wanted or db is gone, go to root node at least
42324232
RestoreLastActiveDatabase := AppSettings.ReadBool(asRestoreLastUsedDB);
4233+
{$IFDEF DARWIN}
4234+
// Workaround: Prevent host sub-tabs from getting disabled on macOS, issue #2339
4235+
RestoreLastActiveDatabase := False;
4236+
{$ENDIF}
42334237
AppSettings.SessionPath := Params.SessionPath;
42344238
LastActiveDatabase := AppSettings.ReadString(asLastUsedDB);
42354239
if RestoreLastActiveDatabase

0 commit comments

Comments
 (0)