diff --git a/resources/text.qrc b/resources/text.qrc index b1c47e58..687a2711 100644 --- a/resources/text.qrc +++ b/resources/text.qrc @@ -6,7 +6,7 @@ text/prefabs_default_emerald.json text/prefabs_default_firered.json text/prefabs_default_ruby.json - text/script_template.js + text/script_template.txt ../CHANGELOG.md diff --git a/resources/text/script_template.js b/resources/text/script_template.txt similarity index 100% rename from resources/text/script_template.js rename to resources/text/script_template.txt diff --git a/src/ui/customscriptseditor.cpp b/src/ui/customscriptseditor.cpp index accc9c89..bbbbfc03 100644 --- a/src/ui/customscriptseditor.cpp +++ b/src/ui/customscriptseditor.cpp @@ -167,7 +167,7 @@ void CustomScriptsEditor::createNewScript() { return; } ParseUtil parser; - scriptFile.write(parser.readTextFile(":/text/script_template.js").toUtf8()); + scriptFile.write(parser.readTextFile(":/text/script_template.txt").toUtf8()); scriptFile.close(); // TODO: When this dialog closes, focus returns to the editor window this->displayNewScript(filepath);