0
0
Fork 0

Fix weird code

This commit is contained in:
Oliver Akins 2022-06-02 20:36:34 -06:00
parent 716e12aa40
commit 9d24a134e1
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -122,11 +122,7 @@ export default class FileHider extends Plugin {
if (!this.style) {
this.style = findStyleSheet();
};
if (this.settings.hidden) {
this.style.disabled = true;
} else {
this.style.disabled = false;
};
this.style.disabled = this.settings.hidden;
this.settings.hidden = !this.settings.hidden;
this.saveSettings();
};