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

Commit 01e7d36

Browse files
committed
added log check when on CompileAll, a script is omitted
1 parent 91adced commit 01e7d36

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

UI/MainWindow/MainWindowObjectBrowser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ private StackPanel BuildTreeViewItemContent(string headerString, string iconFile
712712
/// <returns></returns>
713713
private static TreeViewItem VisualUpwardSearch(DependencyObject source)
714714
{
715-
while (source != null && !(source is TreeViewItem))
715+
while (source != null && source is not TreeViewItem)
716716
{
717717
source = VisualTreeHelper.GetParent(source);
718718
}

UI/MainWindow/MainWindowSPCompiler.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,16 @@ await this.ShowMessageAsync(Program.Translations.GetLanguage("Error"),
8989
return;
9090
}
9191

92-
foreach (var t in editors)
92+
foreach (var editor in editors)
9393
{
94-
var compileBoxIsChecked = t.CompileBox.IsChecked;
94+
var compileBoxIsChecked = editor.CompileBox.IsChecked;
9595
if (compileBoxIsChecked != null && compileBoxIsChecked.Value)
9696
{
97-
ScriptsCompiled.Add(t.FullFilePath);
97+
ScriptsCompiled.Add(editor.FullFilePath);
98+
}
99+
else
100+
{
101+
LoggingControl.LogAction($"{new FileInfo(editor.FullFilePath).FullName} (omitted)");
98102
}
99103
}
100104
}

0 commit comments

Comments
 (0)