From 8b3d3662198f52dc0d1f789d48a9178d1ba69611 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 12 Aug 2020 16:55:58 +0200 Subject: [PATCH] main: Get rid of "SelectedProfile" property The original idea was to have a "SelectedProfile" property that would be settable by the user, but could be different from the "ActiveProfile" if the hardware's performance mode wasn't available for example. It turns out that having 2 separate states makes for very confusing UI, so if the performance profile becomes inhibited and it's the current one, the active profile will automatically switch to balanced and stay there. --- src/net.hadess.PowerProfiles.xml | 15 ++----- src/power-profiles-daemon.c | 73 ++++++++++++-------------------- tests/integration-test | 22 +++------- 3 files changed, 36 insertions(+), 74 deletions(-) diff --git a/src/net.hadess.PowerProfiles.xml b/src/net.hadess.PowerProfiles.xml index 1768a0f..9bd3903 100644 --- a/src/net.hadess.PowerProfiles.xml +++ b/src/net.hadess.PowerProfiles.xml @@ -19,18 +19,11 @@ - - - - +