mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-06-02 10:37:50 +00:00
BatteryService: check if charging mode disabled before applying in init
This commit is contained in:
@@ -83,8 +83,10 @@ Singleton {
|
||||
}
|
||||
|
||||
function init() {
|
||||
BatteryService.applyChargingMode(true)
|
||||
Logger.log("BatteryService", `Applied charging mode - ${BatteryService.chargingMode}`)
|
||||
if (BatteryService.chargingMode !== BatteryService.ChargingMode.Disabled) {
|
||||
BatteryService.applyChargingMode(true)
|
||||
Logger.log("BatteryService", `Applied charging mode - ${BatteryService.chargingMode}`)
|
||||
}
|
||||
}
|
||||
|
||||
Process {
|
||||
|
||||
Reference in New Issue
Block a user