Skip to content

Commit

Permalink
Show settings window after the app has been activated (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Valgard authored May 7, 2024
1 parent 2f4f65e commit 6c1069f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/Settings/SettingsWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ public final class SettingsWindowController: NSWindowController {
tabViewController.restoreInitialTab()
}

showWindow(self)
restoreWindowPosition()
#if compiler(>=5.9) && canImport(AppKit)
if #available(macOS 14, *) {
NSApp.activate()
Expand All @@ -106,6 +104,9 @@ public final class SettingsWindowController: NSWindowController {
#else
NSApp.activate(ignoringOtherApps: true)
#endif

showWindow(self)
restoreWindowPosition()
}

private func restoreWindowPosition() {
Expand Down

0 comments on commit 6c1069f

Please sign in to comment.