Avoid Qt quick compiler for script_template
This commit is contained in:
parent
dcba9ececd
commit
c3c9936c67
3 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue