preserve and load settings correctly
This commit is contained in:
parent
c228a70223
commit
5f95bce9e1
1 changed files with 1 additions and 1 deletions
2
main.ts
2
main.ts
|
@ -102,7 +102,7 @@ class SampleSettingTab extends PluginSettingTab {
|
||||||
.setDesc('It\'s a secret')
|
.setDesc('It\'s a secret')
|
||||||
.addText(text => text
|
.addText(text => text
|
||||||
.setPlaceholder('Enter your secret')
|
.setPlaceholder('Enter your secret')
|
||||||
.setValue('')
|
.setValue(this.plugin.settings.mySetting)
|
||||||
.onChange(async (value) => {
|
.onChange(async (value) => {
|
||||||
console.log('Secret: ' + value);
|
console.log('Secret: ' + value);
|
||||||
this.plugin.settings.mySetting = value;
|
this.plugin.settings.mySetting = value;
|
||||||
|
|
Loading…
Reference in a new issue