We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fff0574 commit 5e2809dCopy full SHA for 5e2809d
jsEngine/settings/Settings.ts
@@ -20,15 +20,17 @@ export class JsEnginePluginSettingTab extends PluginSettingTab {
20
}
21
22
display(): void {
23
- this.containerEl.empty();
+ const containerEl = this.containerEl;
24
+ const settings = this.plugin.settings;
25
+ containerEl.empty();
26
- if (!this.plugin.settings) {
27
+ if (!settings) {
28
return;
29
30
31
// this.containerEl.createEl('p', { text: 'Currently Empty, but there will be stuff here later.' });
32
- new Setting(this.containerEl).setName('Startup scripts').addButton(button => {
33
+ new Setting(containerEl).setName('Startup scripts').addButton(button => {
34
button.setButtonText('Manage').onClick(() => {
35
new StartupScriptsModal(this.plugin).open();
36
});
0 commit comments