diff options
Diffstat (limited to 'UVtools.WPF/Controls/Tools/ToolLayerImportControl.axaml.cs')
-rw-r--r-- | UVtools.WPF/Controls/Tools/ToolLayerImportControl.axaml.cs | 2 |
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() |