mirror of
https://github.com/lil-org/tokenary.git
synced 2024-11-30 13:02:49 +03:00
Terminate immediately on Quit item selection
This commit is contained in:
parent
5fca7d0b99
commit
74014cf2fc
@ -114,13 +114,9 @@ class Agent: NSObject {
|
||||
alert.addButton(withTitle: "OK")
|
||||
alert.addButton(withTitle: "Cancel")
|
||||
if alert.runModal() == .alertFirstButtonReturn {
|
||||
statusBarItem = nil
|
||||
WalletConnect.shared.killAllSessions()
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(2)) {
|
||||
NSApp.terminate(nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func setupStatusBarItem() {
|
||||
let statusBar = NSStatusBar.system
|
||||
|
Loading…
Reference in New Issue
Block a user