From c3c9936c674fd115454d09f9b07edb1d8adff9f1 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Fri, 3 Nov 2023 10:48:20 -0400 Subject: [PATCH] Avoid Qt quick compiler for script_template --- resources/text.qrc | 2 +- resources/text/{script_template.js => script_template.txt} | 0 src/ui/customscriptseditor.cpp | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename resources/text/{script_template.js => script_template.txt} (100%) 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);