mirror of
https://github.com/Rafostar/clapper.git
synced 2025-09-01 00:41:58 +02:00
Fix disabling plugin feature with zero rank
This commit is contained in:
@@ -251,7 +251,7 @@ class PrefsPluginFeature extends Adw.ActionRow
|
|||||||
|
|
||||||
if(enableSwitch.active)
|
if(enableSwitch.active)
|
||||||
settingsData[this.title] = this.currentRank;
|
settingsData[this.title] = this.currentRank;
|
||||||
else if(settingsData[this.title])
|
else if(settingsData[this.title] != null)
|
||||||
delete settingsData[this.title];
|
delete settingsData[this.title];
|
||||||
|
|
||||||
this._updateRanking(settingsData);
|
this._updateRanking(settingsData);
|
||||||
|
Reference in New Issue
Block a user