This commit is contained in:
Max Goedjen 2022-01-02 16:15:09 -08:00
parent 64225af0c1
commit ef4bf74ac5
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8

View File

@ -33,6 +33,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
DispatchQueue.main.async { DispatchQueue.main.async {
self.socketController.handler = self.agent.handle(reader:writer:) self.socketController.handler = self.agent.handle(reader:writer:)
} }
try? publicKeyFileStoreController.generatePublicKeys(for: storeList.stores.flatMap({ $0.secrets }))
notifier.prompt() notifier.prompt()
updateSink = updater.$update.sink { update in updateSink = updater.$update.sink { update in
guard let update = update else { return } guard let update = update else { return }
@ -43,7 +44,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
func reloadKeys() { func reloadKeys() {
// TODO: This // TODO: This
// storeList.reloadAll() // storeList.reloadAll()
try? publicKeyFileStoreController.clear()
try? publicKeyFileStoreController.generatePublicKeys(for: storeList.stores.flatMap({ $0.secrets })) try? publicKeyFileStoreController.generatePublicKeys(for: storeList.stores.flatMap({ $0.secrets }))
} }