mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Fix show title bug
This commit is contained in:
parent
7f64339ffc
commit
d632b4e975
2 changed files with 7 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue