From cf123ae18e300b091757c5c363d2fe9aa78d6f3c Mon Sep 17 00:00:00 2001 From: stsdc <6031763+stsdc@users.noreply.github.com> Date: Fri, 21 Nov 2025 13:52:00 +0100 Subject: [PATCH] Remove the binding that prevents the saving of run-in-background switch value --- src/Views/PreferencesView.vala | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/Views/PreferencesView.vala b/src/Views/PreferencesView.vala index 44e19470..fcb82da1 100644 --- a/src/Views/PreferencesView.vala +++ b/src/Views/PreferencesView.vala @@ -158,19 +158,5 @@ public class Monitor.PreferencesView : Granite.Bin { settings.bind ("indicator-gpu-state", gpu_check, "active", DEFAULT); settings.bind ("indicator-network-download-state", network_download_check, "active", DEFAULT); settings.bind ("indicator-network-upload-state", network_upload_check, "active", DEFAULT); - - // Disable the background preference when the indicator is enabled - settings.bind_with_mapping ( - "indicator-state", background_switch, "active", GET, - (switch_state, settings_state, user_data) => { - bool state = settings_state.get_boolean (); - if (!state) { - switch_state.set_boolean (false); - } - - return true; - }, - (SettingsBindSetMappingShared) null, null, null - ); } }