mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +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)
|
||||
settingsData[this.title] = this.currentRank;
|
||||
else if(settingsData[this.title])
|
||||
else if(settingsData[this.title] != null)
|
||||
delete settingsData[this.title];
|
||||
|
||||
this._updateRanking(settingsData);
|
||||
|
Reference in New Issue
Block a user