summaryrefslogtreecommitdiffhomepage
path: root/main.ts
diff options
context:
space:
mode:
authorfyears <[email protected]>2021-10-10 17:13:28 +0800
committerLishid <[email protected]>2021-10-10 11:11:02 -0400
commit5f95bce9e1ccfc207addfccd525d6dd93035f20b (patch)
treeb88493394e732697a83dfe8e539077e42205662b /main.ts
parentc228a7022301e4a74614a67570d38ed2e2e05a71 (diff)
downloadai-pulse-obsidian-plugin-5f95bce9e1ccfc207addfccd525d6dd93035f20b.tar.gz
ai-pulse-obsidian-plugin-5f95bce9e1ccfc207addfccd525d6dd93035f20b.zip
preserve and load settings correctly
Diffstat (limited to 'main.ts')
-rw-r--r--main.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.ts b/main.ts
index eeb3dda..36e175e 100644
--- 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;