diff options
Diffstat (limited to 'UVtools.WPF/MainWindow.axaml.cs')
-rw-r--r-- | UVtools.WPF/MainWindow.axaml.cs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/UVtools.WPF/MainWindow.axaml.cs b/UVtools.WPF/MainWindow.axaml.cs index 92d60f3..c5e7297 100644 --- a/UVtools.WPF/MainWindow.axaml.cs +++ b/UVtools.WPF/MainWindow.axaml.cs @@ -617,7 +617,7 @@ namespace UVtools.WPF AddHandler(DragDrop.DropEvent, (sender, e) => { - ProcessFiles(e.Data.GetFileNames().ToArray()); + ProcessFiles(e.Data.GetFileNames()?.ToArray()); }); _menuFileSendTo = this.FindControl<MenuItem>("MainMenu.File.SendTo"); @@ -1823,8 +1823,6 @@ namespace UVtools.WPF VisibleThumbnailIndex = 1; - RefreshProperties(); - UpdateTitle(); if (mat is not null) @@ -1904,7 +1902,7 @@ namespace UVtools.WPF $"Ratio: {xRatio}:{yRatio}\n", "Incorrect image ratio detected"); } - + RefreshProperties(); ResetDataContext(); ForceUpdateActualLayer(actualLayer.Clamp(actualLayer, SliderMaximumValue)); @@ -2234,6 +2232,11 @@ namespace UVtools.WPF } + public void OpenTerminal() + { + new TerminalWindow().Show(this); + } + #region Operations public async Task<Operation> ShowRunOperation(Operation loadOperation) => |