summaryrefslogtreecommitdiff
path: root/services/GameMode.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-23 18:10:32 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-23 18:10:32 +1000
commit21e1efd944f39c53c649348559550e18f6a9803b (patch)
tree1bc762bc2e4dd19cae41ae0bae696ed6cf1fa528 /services/GameMode.qml
parentaudio: audio device changed toasts (#684) (diff)
downloadcaelestia-shell-21e1efd944f39c53c649348559550e18f6a9803b.tar.gz
caelestia-shell-21e1efd944f39c53c649348559550e18f6a9803b.tar.bz2
caelestia-shell-21e1efd944f39c53c649348559550e18f6a9803b.zip
config: enable/disable specific toasts
Diffstat (limited to 'services/GameMode.qml')
-rw-r--r--services/GameMode.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/services/GameMode.qml b/services/GameMode.qml
index 3881d74..6771d59 100644
--- a/services/GameMode.qml
+++ b/services/GameMode.qml
@@ -1,5 +1,6 @@
pragma Singleton
+import qs.config
import Caelestia
import Quickshell
import Quickshell.Io
@@ -17,10 +18,12 @@ Singleton {
onEnabledChanged: {
if (enabled) {
setDynamicConfs();
- Toaster.toast(qsTr("Game mode enabled"), qsTr("Disabled Hyprland animations, blur, gaps and shadows"), "gamepad");
+ if (Config.utilities.toasts.gameModeChanged)
+ Toaster.toast(qsTr("Game mode enabled"), qsTr("Disabled Hyprland animations, blur, gaps and shadows"), "gamepad");
} else {
Quickshell.execDetached(["hyprctl", "reload"]);
- Toaster.toast(qsTr("Game mode disabled"), qsTr("Hyprland settings restored"), "gamepad");
+ if (Config.utilities.toasts.gameModeChanged)
+ Toaster.toast(qsTr("Game mode disabled"), qsTr("Hyprland settings restored"), "gamepad");
}
}