Fix store folder condition show as activated bug

This commit is contained in:
Lost Paul 2023-08-10 22:15:37 +02:00
parent 008c4715b4
commit 0b33958f3c

View file

@ -120,7 +120,7 @@ export class FolderOverviewSettings extends Modal {
.setDesc('Choose if the collapsed condition should be stored stored until you restart Obsidian')
.addToggle((toggle) =>
toggle
.setValue(this.yaml.storeFolderCondition || this.plugin.settings.defaultOverview.storeFolderCondition || true)
.setValue(this.yaml.storeFolderCondition)
.onChange(async (value) => {
this.yaml.storeFolderCondition = value;
if (this.defaultSettings) {