1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-01-12 18:08:37 +00:00

* trying to terminate app before forceTerminate (to prevent loosing of unsaved data)

This commit is contained in:
ad 2018-04-24 13:19:22 +03:00
parent 1e2043ebda
commit 3fe6c22068

View File

@ -178,8 +178,10 @@ class AppScrubberTouchBarItem: NSCustomTouchBarItem, NSScrubberDelegate, NSScrub
if (self.ticks > maxTicks) {
if let processIdentifier = applications[selected].pid {
if !(NSRunningApplication(processIdentifier: processIdentifier)?.terminate())! {
NSRunningApplication(processIdentifier: processIdentifier)?.forceTerminate()
}
}
} else {
hf.tap(strong: 6)
if let index = self.persistentAppIdentifiers.index(of: bundleIdentifier!) {