summaryrefslogtreecommitdiff
path: root/services/Notifs.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-23 14:20:14 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-23 14:20:14 +1000
commita6deec963cadc47852282285116615f62619d87f (patch)
treef120eb6ebf747acef40567ebecffb0e8d03dcc2f /services/Notifs.qml
parentnotifs: wrap time to days (diff)
downloadcaelestia-shell-a6deec963cadc47852282285116615f62619d87f.tar.gz
caelestia-shell-a6deec963cadc47852282285116615f62619d87f.tar.bz2
caelestia-shell-a6deec963cadc47852282285116615f62619d87f.zip
internal: add toasts for gamemode & dnd
Diffstat (limited to 'services/Notifs.qml')
-rw-r--r--services/Notifs.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/Notifs.qml b/services/Notifs.qml
index 4dbabf4..2deba75 100644
--- a/services/Notifs.qml
+++ b/services/Notifs.qml
@@ -20,6 +20,13 @@ Singleton {
property bool loaded
+ onDndChanged: {
+ if (dnd)
+ Toaster.toast(qsTr("Do not disturb enabled"), qsTr("Popup notifications are now disabled"), "do_not_disturb_on");
+ else
+ Toaster.toast(qsTr("Do not disturb disabled"), qsTr("Popup notifications are now enabled"), "do_not_disturb_off");
+ }
+
onListChanged: {
if (loaded)
saveTimer.restart();