Skip to content

Commit

Permalink
misc: sometimes dashboard won't popup to front, recall activate command
Browse files Browse the repository at this point in the history
  • Loading branch information
yichengchen committed Oct 18, 2023
1 parent b3234a4 commit 498c6d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ClashX/ClashWindowController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ class ClashWindowController<T: NSViewController>: NSWindowController, NSWindowDe
}
window?.makeKeyAndOrderFront(self)
window?.delegate = self
NSApp.activate(ignoringOtherApps: true)
window?.makeKeyAndOrderFront(nil)
}

func windowWillClose(_ notification: Notification) {
Expand Down

0 comments on commit 498c6d7

Please sign in to comment.