From 74014cf2fc47b3d9e00c666b14a267a480007ee5 Mon Sep 17 00:00:00 2001 From: Ivan Grachyov Date: Tue, 22 Jun 2021 20:10:07 +0300 Subject: [PATCH] Terminate immediately on Quit item selection --- Encrypted Ink/Agent.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Encrypted Ink/Agent.swift b/Encrypted Ink/Agent.swift index 797c2fb7..a9e3ca2f 100644 --- a/Encrypted Ink/Agent.swift +++ b/Encrypted Ink/Agent.swift @@ -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) } }