mirror of
https://github.com/lil-org/tokenary.git
synced 2024-11-30 03:04:17 +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: "Cancel")
|
||||
if alert.runModal() == .alertFirstButtonReturn {
|
||||
statusBarItem = nil
|
||||
WalletConnect.shared.killAllSessions()
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(2)) {
|
||||
NSApp.terminate(nil)
|
||||
}
|
||||
NSApp.terminate(nil)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user