diff --git a/src/prefs.js b/src/prefs.js index d2a657d8..2d209358 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -251,7 +251,7 @@ class PrefsPluginFeature extends Adw.ActionRow if(enableSwitch.active) settingsData[this.title] = this.currentRank; - else if(settingsData[this.title]) + else if(settingsData[this.title] != null) delete settingsData[this.title]; this._updateRanking(settingsData);