summaryrefslogtreecommitdiff
path: root/modules/BatteryMonitor.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/BatteryMonitor.qml')
-rw-r--r--modules/BatteryMonitor.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/BatteryMonitor.qml b/modules/BatteryMonitor.qml
index d24cff2..bd3d6f0 100644
--- a/modules/BatteryMonitor.qml
+++ b/modules/BatteryMonitor.qml
@@ -14,10 +14,10 @@ Scope {
function onOnBatteryChanged(): void {
if (UPower.onBattery) {
- if (Config.utilities.toasts.chargingChanged)
+ if (Config.toasts.chargingChanged)
Toaster.toast(qsTr("Charger unplugged"), qsTr("Battery is discharging"), "power_off");
} else {
- if (Config.utilities.toasts.chargingChanged)
+ if (Config.toasts.chargingChanged)
Toaster.toast(qsTr("Charger plugged in"), qsTr("Battery is charging"), "power");
for (const level of root.warnLevels)
level.warned = false;