summaryrefslogtreecommitdiff
path: root/config/Config.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 /config/Config.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 'config/Config.qml')
-rw-r--r--config/Config.qml3
1 files changed, 2 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);
}