From 6537a84562e8a386efeb9625ef9d4c304de735a9 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 26 Oct 2023 11:47:58 +0200 Subject: [PATCH] overhaul file properties setting closes #6 --- src/settings-tab.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/settings-tab.ts b/src/settings-tab.ts index 48d8039..38ba325 100644 --- a/src/settings-tab.ts +++ b/src/settings-tab.ts @@ -30,12 +30,12 @@ export class JSPSettingsTab extends PluginSettingTab { }); }); new Setting(this.containerEl) - .setName("Strip frontmatter") - .setDesc("Whether document frontmatter (also known as properties) should be removed from the uploaded share.") + .setName("Include file properties") + .setDesc("Whether the file properties of the shared note should be included in the share as visible frontmatter.") .addToggle(t => { - t.setValue(this.plugin.settings.stripFrontmatter); + t.setValue(!this.plugin.settings.stripFrontmatter); t.onChange(async v => { - this.plugin.settings.stripFrontmatter = v; + this.plugin.settings.stripFrontmatter = !v; await this.plugin.saveSettings(); }); });