diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-23 18:10:32 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-23 18:10:32 +1000 |
| commit | 21e1efd944f39c53c649348559550e18f6a9803b (patch) | |
| tree | 1bc762bc2e4dd19cae41ae0bae696ed6cf1fa528 /config | |
| parent | audio: audio device changed toasts (#684) (diff) | |
| download | caelestia-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.qml | 3 | ||||
| -rw-r--r-- | config/UtilitiesConfig.qml | 4 |
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 } |