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,11 +114,7 @@ class Agent: NSObject {
|
|||||||
alert.addButton(withTitle: "OK")
|
alert.addButton(withTitle: "OK")
|
||||||
alert.addButton(withTitle: "Cancel")
|
alert.addButton(withTitle: "Cancel")
|
||||||
if alert.runModal() == .alertFirstButtonReturn {
|
if alert.runModal() == .alertFirstButtonReturn {
|
||||||
statusBarItem = nil
|
NSApp.terminate(nil)
|
||||||
WalletConnect.shared.killAllSessions()
|
|
||||||
DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(2)) {
|
|
||||||
NSApp.terminate(nil)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user