From a6869d18928d4dc1ef5e47279a66eba6fe3cccdf Mon Sep 17 00:00:00 2001 From: Jeremy Wootten Date: Sat, 8 Apr 2023 10:38:10 +0100 Subject: [PATCH] Revert "Improved response to power state changes in Switchboard (#191)" This reverts commit ce88a7b03231b59c57f832aa656b4763d7d1e77e. --- src/Services/Manager.vala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Services/Manager.vala b/src/Services/Manager.vala index 2e34f60a..bc164622 100644 --- a/src/Services/Manager.vala +++ b/src/Services/Manager.vala @@ -115,7 +115,7 @@ public class BluetoothIndicator.Services.ObjectManager : Object { ((DBusProxy) adapter).g_properties_changed.connect ((changed, invalid) => { var powered = changed.lookup_value ("Powered", new VariantType ("b")); if (powered != null) { - set_global_state.begin (powered.get_boolean ()); + set_last_state.begin (); } }); } @@ -217,7 +217,6 @@ public class BluetoothIndicator.Services.ObjectManager : Object { } settings.set_boolean ("bluetooth-enabled", state); - check_global_state (); } public async void set_last_state () {