From d902130c017b251219481d22b2c958bdbfb0616a Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sun, 2 Jan 2022 16:15:22 -0800 Subject: [PATCH] . --- Sources/SecretAgent/AppDelegate.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SecretAgent/AppDelegate.swift b/Sources/SecretAgent/AppDelegate.swift index 23ec181..00794f6 100644 --- a/Sources/SecretAgent/AppDelegate.swift +++ b/Sources/SecretAgent/AppDelegate.swift @@ -33,7 +33,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { DispatchQueue.main.async { self.socketController.handler = self.agent.handle(reader:writer:) } - try? publicKeyFileStoreController.generatePublicKeys(for: storeList.stores.flatMap({ $0.secrets })) + try? publicKeyFileStoreController.generatePublicKeys(for: storeList.stores.flatMap({ $0.secrets }), clear: true) notifier.prompt() updateSink = updater.$update.sink { update in guard let update = update else { return } @@ -44,7 +44,7 @@ class AppDelegate: NSObject, NSApplicationDelegate { func reloadKeys() { // TODO: This // storeList.reloadAll() - try? publicKeyFileStoreController.generatePublicKeys(for: storeList.stores.flatMap({ $0.secrets })) + try? publicKeyFileStoreController.generatePublicKeys(for: storeList.stores.flatMap({ $0.secrets }), clear: true) } }