File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ public class Bluetooth.Services.ObjectManager : Object {
4242 public bool is_connected {get ; private set ; default = false ; }
4343
4444 private bool is_registered = false ;
45+ private string enabled_key = " enabled" ;
4546
4647 private Settings ? settings = null ;
4748 private GLib . DBusObjectManagerClient object_manager;
@@ -56,6 +57,7 @@ public class Bluetooth.Services.ObjectManager : Object {
5657 settings_schema = SettingsSchemaSource . get_default (). lookup (PANEL_SCHEMA , true );
5758 if (settings_schema != null ) {
5859 settings = new Settings (PANEL_SCHEMA );
60+ enabled_key = " bluetooth-enabled" ;
5961 }
6062 }
6163 create_manager. begin ();
@@ -384,7 +386,7 @@ public class Bluetooth.Services.ObjectManager : Object {
384386 }
385387
386388 if (settings != null ) {
387- settings. set_boolean (" bluetooth-enabled " , state);
389+ settings. set_boolean (enabled_key , state);
388390 }
389391
390392 if (! state) {
You can’t perform that action at this time.
0 commit comments