better-manage-global-menu #4

Merged
rokosun merged 8 commits from better-manage-global-menu into master 2024-01-01 15:38:54 +00:00
Showing only changes of commit 582743d1f8 - Show all commits

View File

@ -37,7 +37,7 @@ proc enableTopBarIntegration(): bool =
sendNotification(appID, "Layout Switcher", "Authentication failed!") sendNotification(appID, "Layout Switcher", "Authentication failed!")
return false return false
else: else:
sendNotification(appID, "Layout Switcher", "Failed installing global menu!") sendNotification(appID, "Layout Switcher", "Failed to enable global menu!")
return false return false
# Hide window borders when maximized # Hide window borders when maximized
discard runCommand("/usr/bin/xfconf-query", discard runCommand("/usr/bin/xfconf-query",
@ -62,7 +62,7 @@ proc disableTopBarIntegration(): bool =
of 127: of 127:
sendNotification(appID, "Layout Switcher", "Authentication failed!") sendNotification(appID, "Layout Switcher", "Authentication failed!")
else: else:
sendNotification(appID, "Layout Switcher", "Failed removing global menu!") sendNotification(appID, "Layout Switcher", "Failed to disable global menu!")
return false return false
# Hide window borders when maximized # Hide window borders when maximized
discard runCommand("/usr/bin/xfconf-query", discard runCommand("/usr/bin/xfconf-query",