mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-01-11 17:38:38 +00:00
* trying to terminate app before forceTerminate (to prevent loosing of unsaved data)
This commit is contained in:
parent
1e2043ebda
commit
3fe6c22068
@ -178,7 +178,9 @@ class AppScrubberTouchBarItem: NSCustomTouchBarItem, NSScrubberDelegate, NSScrub
|
|||||||
|
|
||||||
if (self.ticks > maxTicks) {
|
if (self.ticks > maxTicks) {
|
||||||
if let processIdentifier = applications[selected].pid {
|
if let processIdentifier = applications[selected].pid {
|
||||||
NSRunningApplication(processIdentifier: processIdentifier)?.forceTerminate()
|
if !(NSRunningApplication(processIdentifier: processIdentifier)?.terminate())! {
|
||||||
|
NSRunningApplication(processIdentifier: processIdentifier)?.forceTerminate()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
hf.tap(strong: 6)
|
hf.tap(strong: 6)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user