Skip to content

Commit

Permalink
Revert "Improved response to power state changes in Switchboard (#191)…
Browse files Browse the repository at this point in the history
…" (#194)

This reverts commit ce88a7b.
  • Loading branch information
Jeremy Wootten authored Apr 8, 2023
1 parent ce88a7b commit 533a60b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Services/Manager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
}
});
}
Expand Down Expand Up @@ -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 () {
Expand Down

0 comments on commit 533a60b

Please sign in to comment.