From a145890f9d1dbb70bd04e5a36060d18f5d4bb8b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 1 Sep 2021 17:53:23 +0200 Subject: [PATCH] Fix disabling plugin feature with zero rank --- src/prefs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);