From: Mirko Günther <renegart@gmx.de>
Subject: battery: always store charging info setting in com.lomiri.touch.system

The key show-charging-information-while-locked only exists in
com.lomiri.touch.system, which is also where the Lomiri greeter reads it.
Without repowerd the panel used org.gnome.desktop.session and aborted
when the checkbox was toggled.

diff --git a/plugins/battery/PageComponent.qml b/plugins/battery/PageComponent.qml
index c075dc9..94a768e 100644
--- a/plugins/battery/PageComponent.qml
+++ b/plugins/battery/PageComponent.qml
@@ -57,6 +57,11 @@ ItemPage {
         schema.id: batteryBackend.powerdRunning ? "com.lomiri.touch.system" : "org.gnome.desktop.session"
     }
     
+    GSettings {
+        id: lockScreenSettings
+        schema.id: "com.lomiri.touch.system"
+    }
+
     GSettings {
         id: indicatorSettings
         schema.id: "org.ayatana.indicator.power"
@@ -305,10 +310,10 @@ ItemPage {
                 CheckBox {
                     objectName: "chargingInformation"
                     SlotsLayout.position: SlotsLayout.First
-                    property bool serverChecked: powerSettings.showChargingInformationWhileLocked
+                    property bool serverChecked: lockScreenSettings.showChargingInformationWhileLocked
                     onServerCheckedChanged: checked = serverChecked
                     Component.onCompleted: checked = serverChecked
-                    onTriggered: powerSettings.showChargingInformationWhileLocked = checked
+                    onTriggered: lockScreenSettings.showChargingInformationWhileLocked = checked
                 }
                 text: i18n.tr("Show charging information on lock screen")
             }
