better-manage-global-menu (#4)

Reviewed-on: https://git.trom.tf/TROMjaro/layout-switcher-package/pulls/4
This commit is contained in:
rokosun
2024-01-01 15:38:54 +00:00
parent 666d24625b
commit d43af1f7fd
6 changed files with 43 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ proc enableTopBarIntegration(): bool =
sendNotification(appID, "Layout Switcher", "Authentication failed!")
return false
else:
sendNotification(appID, "Failed installing global menu!", "Make sure that you are not currently installing any apps or updating the system.\nEnabling internet connection might solve the issue.")
sendNotification(appID, "Layout Switcher", "Failed to enable global menu!")
return false
# Hide window borders when maximized
discard runCommand("/usr/bin/xfconf-query",
@@ -62,7 +62,7 @@ proc disableTopBarIntegration(): bool =
of 127:
sendNotification(appID, "Layout Switcher", "Authentication failed!")
else:
sendNotification(appID, "Failed removing global menu!", "Make sure that you are not currently installing any apps or updating the system.")
sendNotification(appID, "Layout Switcher", "Failed to disable global menu!")
return false
# Hide window borders when maximized
discard runCommand("/usr/bin/xfconf-query",