Skip to content

Commit 6c1069f

Browse files
authored
Show settings window after the app has been activated (#121)
1 parent 2f4f65e commit 6c1069f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/Settings/SettingsWindowController.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ public final class SettingsWindowController: NSWindowController {
9595
tabViewController.restoreInitialTab()
9696
}
9797

98-
showWindow(self)
99-
restoreWindowPosition()
10098
#if compiler(>=5.9) && canImport(AppKit)
10199
if #available(macOS 14, *) {
102100
NSApp.activate()
@@ -106,6 +104,9 @@ public final class SettingsWindowController: NSWindowController {
106104
#else
107105
NSApp.activate(ignoringOtherApps: true)
108106
#endif
107+
108+
showWindow(self)
109+
restoreWindowPosition()
109110
}
110111

111112
private func restoreWindowPosition() {

0 commit comments

Comments
 (0)