Avoid Qt quick compiler for script_template

This commit is contained in:
GriffinR 2023-11-03 10:48:20 -04:00
parent dcba9ececd
commit c3c9936c67
3 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@
<file>text/prefabs_default_emerald.json</file> <file>text/prefabs_default_emerald.json</file>
<file>text/prefabs_default_firered.json</file> <file>text/prefabs_default_firered.json</file>
<file>text/prefabs_default_ruby.json</file> <file>text/prefabs_default_ruby.json</file>
<file>text/script_template.js</file> <file>text/script_template.txt</file>
<file>../CHANGELOG.md</file> <file>../CHANGELOG.md</file>
</qresource> </qresource>
</RCC> </RCC>

View file

@ -167,7 +167,7 @@ void CustomScriptsEditor::createNewScript() {
return; return;
} }
ParseUtil parser; ParseUtil parser;
scriptFile.write(parser.readTextFile(":/text/script_template.js").toUtf8()); scriptFile.write(parser.readTextFile(":/text/script_template.txt").toUtf8());
scriptFile.close(); scriptFile.close();
// TODO: When this dialog closes, focus returns to the editor window // TODO: When this dialog closes, focus returns to the editor window
this->displayNewScript(filepath); this->displayNewScript(filepath);