0
0
Fork 0

Invert the set value to make it more intuitive

This commit is contained in:
Oliver Akins 2022-05-26 23:50:58 -06:00
parent 3c91964a49
commit 58acaca172
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -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();
}); });