Invert the set value to make it more intuitive
This commit is contained in:
parent
3c91964a49
commit
58acaca172
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ export class VisibilityToggleSetting {
|
||||||
.setDesc(`Toggle whether or not files and folders that are told to be hidden will be hidden or not.`)
|
.setDesc(`Toggle whether or not files and folders that are told to be hidden will be hidden or not.`)
|
||||||
.addToggle(toggle => {
|
.addToggle(toggle => {
|
||||||
toggle
|
toggle
|
||||||
.setValue(plugin.settings.hidden)
|
.setValue(!plugin.settings.hidden)
|
||||||
.onChange(() => {
|
.onChange(() => {
|
||||||
plugin.toggleVisibility();
|
plugin.toggleVisibility();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue