feat: prevented closing popup view if unattached when open activity monitor or module settings

This commit is contained in:
Serhiy Mytrovtsiy
2024-03-01 20:46:16 +01:00
parent 052845d480
commit 298cdc24aa

View File

@@ -389,13 +389,11 @@ internal class HeaderView: NSStackView {
}
@objc func openActivityMonitor(_ sender: Any) {
self.window?.setIsVisible(false)
guard let app = self.app else { return }
NSWorkspace.shared.open([], withApplicationAt: app, configuration: NSWorkspace.OpenConfiguration())
}
@objc func openSettings(_ sender: Any) {
self.window?.setIsVisible(false)
NotificationCenter.default.post(name: .toggleSettings, object: nil, userInfo: ["module": self.title])
}