mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed app restart after import/reset settings
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user