fix: fixed app restart after import/reset settings

This commit is contained in:
Serhiy Mytrovtsiy
2024-04-27 14:31:12 +02:00
parent 0f5e1fb40a
commit 73bca146ef

View File

@@ -343,10 +343,7 @@ class ApplicationSettings: NSStackView {
if alert.runModal() == .alertFirstButtonReturn {
Store.shared.reset()
if let path = Bundle.main.resourceURL?.deletingLastPathComponent().deletingLastPathComponent().absoluteString {
asyncShell("/usr/bin/open \(path)")
NSApp.terminate(self)
}
restartApp(self)
}
}