fix: added PowerProfile init

This commit is contained in:
Sridou
2025-10-25 02:36:32 +05:30
parent 66dd9ced5a
commit 5aad715ace
3 changed files with 7 additions and 3 deletions
+1 -2
View File
@@ -222,8 +222,7 @@ Item {
} }
} }
IpcHandler { IpcHandler {
target: "PowerProfile" target: "powerProfile"
function cycle() { function cycle() {
PowerProfileService.cycleProfile() PowerProfileService.cycleProfile()
} }
+4
View File
@@ -49,6 +49,10 @@ Singleton {
} }
} }
function init() {
Logger.d("PowerProfileService", "Service started")
}
function setProfile(p) { function setProfile(p) {
if (!available) if (!available)
return return
+2 -1
View File
@@ -91,7 +91,8 @@ ShellRoot {
HooksService.init() HooksService.init()
BluetoothService.init() BluetoothService.init()
BatteryService.init() BatteryService.init()
IdleInhibitorService.init() IdleInhibitorService.init()
PowerProfileService.init()
} }
Background {} Background {}