Removing test mode on battery

This commit is contained in:
LemmyCook 2025-09-14 17:21:38 -04:00
parent 118323e6b5
commit 19312d94c3
8 changed files with 19 additions and 18 deletions

View file

@ -34,7 +34,7 @@ Item {
readonly property real warningThreshold: widgetSettings.warningThreshold !== undefined ? widgetSettings.warningThreshold : widgetMetadata.warningThreshold
// Test mode
readonly property bool testMode: true
readonly property bool testMode: false
readonly property int testPercent: 100
readonly property bool testCharging: false
@ -89,7 +89,7 @@ Item {
text: (isReady || testMode) ? Math.round(percent) : "-"
autoHide: false
forceOpen: isReady && (testMode || battery.isLaptopBattery) && displayMode === "alwaysShow"
forceClosed: displayMode === "alwaysHide"
forceClose: displayMode === "alwaysHide"
disableOpen: (!isReady || (!testMode && !battery.isLaptopBattery))
tooltipText: {
let lines = []