Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolLayerImportControl.axaml.cs')
-rw-r--r--UVtools.WPF/Controls/Tools/ToolLayerImportControl.axaml.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.WPF/Controls/Tools/ToolLayerImportControl.axaml.cs b/UVtools.WPF/Controls/Tools/ToolLayerImportControl.axaml.cs
index f2bfefa..0c20c4b 100644
--- a/UVtools.WPF/Controls/Tools/ToolLayerImportControl.axaml.cs
+++ b/UVtools.WPF/Controls/Tools/ToolLayerImportControl.axaml.cs
@@ -159,7 +159,7 @@ namespace UVtools.WPF.Controls.Tools
{
RaisePropertyChanged(nameof(InfoLayerHeightStr));
RaisePropertyChanged(nameof(InfoImportResult));
- ParentWindow.ButtonOkEnabled = Operation.Files.Count > 0;
+ if(ParentWindow is not null) ParentWindow.ButtonOkEnabled = Operation.Files.Count > 0;
}
public async void AddFiles()