Skip to content

Commit 5ab8d03

Browse files
committed
execute the startupscript when it gets enabled
1 parent 3775bd7 commit 5ab8d03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jsEngine/settings/Settings.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export class JsEnginePluginSettingTab extends PluginSettingTab {
112112
const settings = this.plugin.settings;
113113
if (enable) {
114114
settings.startupScripts.push(file.path);
115+
void this.plugin.api.internal.executeFileSimple(file.path);
115116
} else {
116117
settings.startupScripts.remove(file.path);
117118
}

0 commit comments

Comments
 (0)