mirror of
https://github.com/obsidianmd/obsidian-sample-plugin.git
synced 2026-11-27 06:35:41 +00:00
preserve and load settings correctly
This commit is contained in:
1 parent
c228a70223
commit
5f95bce9e1
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user