feat: prevent users from quitting finder (closes #362)
This commit is contained in:
1 parent
c6c421ed56
commit
a1338c0051
1 file changed
+2
@@ -104,6 +104,8 @@ class Window {
|
||||
}
|
||||
|
||||
func quitApp() {
|
||||
// prevent users from quitting Finder
|
||||
if application.runningApplication.bundleIdentifier == "com.apple.finder" { return }
|
||||
BackgroundWork.accessibilityCommandsQueue.asyncWithCap { [weak self] in
|
||||
self?.application.runningApplication.terminate()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user