Removing test mode on battery
This commit is contained in:
parent
118323e6b5
commit
19312d94c3
8 changed files with 19 additions and 18 deletions
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue