From 8de2d78285c737ca49eccb19c91bebba2f0e26c4 Mon Sep 17 00:00:00 2001 From: Sridou Date: Sat, 25 Oct 2025 03:29:53 +0530 Subject: [PATCH] feat: IPC calls to set power profiles --- Services/IPCService.qml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Services/IPCService.qml b/Services/IPCService.qml index e3defb20..168a57b5 100644 --- a/Services/IPCService.qml +++ b/Services/IPCService.qml @@ -225,9 +225,22 @@ Item { target: "powerProfile" function cycle() { PowerProfileService.cycleProfile() - } - } + } + function set(mode: string) { + switch (mode) { + case "performance": + PowerProfileService.setProfile(2) + break + case "balanced": + PowerProfileService.setProfile(1) + break + case "powersaver": + PowerProfileService.setProfile(0) + break + } + } + } IpcHandler { target: "media" function playPause() {