mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
fix: added PowerProfile init
This commit is contained in:
@@ -222,8 +222,7 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
IpcHandler {
|
IpcHandler {
|
||||||
target: "PowerProfile"
|
target: "powerProfile"
|
||||||
|
|
||||||
function cycle() {
|
function cycle() {
|
||||||
PowerProfileService.cycleProfile()
|
PowerProfileService.cycleProfile()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,6 +49,10 @@ Singleton {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
Logger.d("PowerProfileService", "Service started")
|
||||||
|
}
|
||||||
|
|
||||||
function setProfile(p) {
|
function setProfile(p) {
|
||||||
if (!available)
|
if (!available)
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -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 {}
|
||||||
|
|||||||
Reference in New Issue
Block a user