summaryrefslogtreecommitdiff
path: root/config
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 /config
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 'config')
-rw-r--r--config/Config.qml3
-rw-r--r--config/UtilitiesConfig.qml4
2 files changed, 6 insertions, 1 deletions
diff --git a/config/Config.qml b/config/Config.qml
index 8d54cf8..267a184 100644
--- a/config/Config.qml
+++ b/config/Config.qml
@@ -40,7 +40,8 @@ Singleton {
onLoaded: {
try {
JSON.parse(text());
- Toaster.toast(qsTr("Config loaded"), qsTr("Config loaded in %1ms").arg(timer.elapsedMs()), "rule_settings");
+ if (adapter.utilities.toasts.configLoaded)
+ Toaster.toast(qsTr("Config loaded"), qsTr("Config loaded in %1ms").arg(timer.elapsedMs()), "rule_settings");
} catch (e) {
Toaster.toast(qsTr("Failed to load config"), e.message, "settings_alert", Toast.Error);
}
diff --git a/config/UtilitiesConfig.qml b/config/UtilitiesConfig.qml
index c1bad2a..0d70d50 100644
--- a/config/UtilitiesConfig.qml
+++ b/config/UtilitiesConfig.qml
@@ -12,6 +12,10 @@ JsonObject {
}
component Toasts: JsonObject {
+ property bool configLoaded: true
+ property bool chargingChanged: true
+ property bool gameModeChanged: true
+ property bool dndChanged: true
property bool audioOutputChanged: true
property bool audioInputChanged: true
}