Fix weird code
This commit is contained in:
parent
716e12aa40
commit
9d24a134e1
1 changed files with 1 additions and 5 deletions
|
|
@ -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();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue