diff --git a/WhyAwake.app/Contents/MacOS/whyawake b/WhyAwake.app/Contents/MacOS/whyawake index b2ac98f..d4447cc 100755 Binary files a/WhyAwake.app/Contents/MacOS/whyawake and b/WhyAwake.app/Contents/MacOS/whyawake differ diff --git a/whyawake.go b/whyawake.go index cd89044..e1df831 100644 --- a/whyawake.go +++ b/whyawake.go @@ -17,8 +17,10 @@ import ( var sleepKeywords = map[string]bool{ "PreventUserIdleDisplaySleep": true, - //"PreventUserIdleSystemSleep": true, - "NoDisplaySleepAssertion": true, + "NoDisplaySleepAssertion": true, +} +var otherChangeKeywords = map[string]bool{ + "PreventUserIdleSystemSleep": true, } var canSleepTitle = "💤" var cantSleepTitle = "😳" @@ -111,7 +113,7 @@ func setMenuState() { func monitorAssertionChanges(channel chan assertions.AssertionChange) { for change := range channel { - if sleepKeywords[change.Type] { + if sleepKeywords[change.Type] || otherChangeKeywords[change.Type] { setMenuState() } }