Fix disabling plugin feature with zero rank

This commit is contained in:
Rafał Dzięgiel
2021-09-01 17:53:23 +02:00
parent 0323c816ad
commit a145890f9d

View File

@@ -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);