Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 6c266b4

Browse files
committed
fix being able to compile templates
1 parent ea57ccc commit 6c266b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UI/MainWindow/MainWindowSPCompiler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ public partial class MainWindow
3535
/// <param name="compileAll"></param>
3636
private async void Compile_SPScripts(bool compileAll = true)
3737
{
38-
// Checks if the program is compiling to avoid doing it again
39-
if (InCompiling)
38+
// Checks if the program is compiling to avoid doing it again, and checks if the editor is from the templates window
39+
if (InCompiling || GetCurrentEditorElement().IsTemplateEditor)
4040
{
4141
return;
4242
}

0 commit comments

Comments
 (0)