obsidian-semantic

Log | Files | Refs | README

commit 5f95bce9e1ccfc207addfccd525d6dd93035f20b
parent c228a7022301e4a74614a67570d38ed2e2e05a71
Author: fyears <fyears@users.noreply.github.com>
Date:   Sun, 10 Oct 2021 17:13:28 +0800

preserve and load settings correctly
Diffstat:
Mmain.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.ts b/main.ts @@ -102,7 +102,7 @@ class SampleSettingTab extends PluginSettingTab { .setDesc('It\'s a secret') .addText(text => text .setPlaceholder('Enter your secret') - .setValue('') + .setValue(this.plugin.settings.mySetting) .onChange(async (value) => { console.log('Secret: ' + value); this.plugin.settings.mySetting = value;