Fix show title bug

This commit is contained in:
Lost Paul 2023-08-12 22:51:03 +02:00
parent 7f64339ffc
commit d632b4e975
2 changed files with 7 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"id": "folder-notes",
"name": "Folder notes",
"version": "1.5.2",
"version": "1.5.4",
"minAppVersion": "0.15.0",
"description": "Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.",
"author": "Lost Paul",

View file

@ -60,7 +60,11 @@ export class FolderOverviewSettings extends Modal {
this.close();
}
});
contentEl.createEl('h2', { text: 'Folder overview settings' });
if (!this.defaultSettings) {
contentEl.createEl('h2', { text: 'Folder overview settings' });
} else {
contentEl.createEl('h2', { text: 'Default folder overview settings' });
}
new Setting(contentEl)
.setName('Show the title')
.setDesc('Choose if the title should be shown')
@ -76,7 +80,7 @@ export class FolderOverviewSettings extends Modal {
await updateYaml(this.plugin, this.ctx, this.el, this.yaml);;
})
);
if (!this.yaml.showTitle) {
if (this.yaml.showTitle) {
new Setting(contentEl)
.setName('Title')
.setDesc('Choose the title of the folder overview')