From 3fe6c220687bf5ecae05e31cccca98313954d74b Mon Sep 17 00:00:00 2001 From: ad Date: Tue, 24 Apr 2018 13:19:22 +0300 Subject: [PATCH 1/2] * trying to terminate app before forceTerminate (to prevent loosing of unsaved data) --- MTMR/Widgets/AppScrubberTouchBarItem.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MTMR/Widgets/AppScrubberTouchBarItem.swift b/MTMR/Widgets/AppScrubberTouchBarItem.swift index 9853a3a..d2632b7 100644 --- a/MTMR/Widgets/AppScrubberTouchBarItem.swift +++ b/MTMR/Widgets/AppScrubberTouchBarItem.swift @@ -178,7 +178,9 @@ class AppScrubberTouchBarItem: NSCustomTouchBarItem, NSScrubberDelegate, NSScrub if (self.ticks > maxTicks) { if let processIdentifier = applications[selected].pid { - NSRunningApplication(processIdentifier: processIdentifier)?.forceTerminate() + if !(NSRunningApplication(processIdentifier: processIdentifier)?.terminate())! { + NSRunningApplication(processIdentifier: processIdentifier)?.forceTerminate() + } } } else { hf.tap(strong: 6) From 7698ea1c8e2674dac16c7cc3f8b4e6f5942c105d Mon Sep 17 00:00:00 2001 From: Christopher Truman Date: Tue, 24 Apr 2018 14:10:18 -0700 Subject: [PATCH 2/2] Spelling :) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4f406c5..0453eb6 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ My the idea is to create the program like a platform for plugins for customizati - [ ] System for autoupdate (maybe https://sparkle-project.org/) Settings: -- [ ] Intarface for plugins and export like presets +- [ ] Interface for plugins and export like presets - [ ] Startup at login - [ ] Show on/off in Dock - [ ] Show on/off in StatusBar @@ -167,7 +167,7 @@ File for customize your preset for MTMR: `open ~/Library/Application\ Support/MT "url": "https://google.com", ``` -## Additional paramaters: +## Additional parameters: - `width` allow to restrict how much room a particular button will take ```json