From e3cd5b708237d483436e1b6edbfc8b4bb5d602f3 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 26 Jan 2020 23:59:05 -0800 Subject: [PATCH] Move eject to before user input (fixes #173) --- DICUI/Windows/MainWindow.xaml.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/DICUI/Windows/MainWindow.xaml.cs b/DICUI/Windows/MainWindow.xaml.cs index 2b76e010..9d751000 100644 --- a/DICUI/Windows/MainWindow.xaml.cs +++ b/DICUI/Windows/MainWindow.xaml.cs @@ -508,6 +508,12 @@ namespace DICUI.Windows if (result) { + if (EjectWhenDoneCheckBox.IsChecked == true) + { + ViewModels.LoggerViewModel.VerboseLogLn($"Ejecting disc in drive {_env.Drive.Letter}"); + _env.EjectDisc(); + } + // Verify dump output and save it result = _env.VerifyAndSaveDumpOutput(progress, (si) => @@ -542,12 +548,6 @@ namespace DICUI.Windows StartStopButton.Content = Constants.StartDumping; CopyProtectScanButton.IsEnabled = true; } - - if (EjectWhenDoneCheckBox.IsChecked == true) - { - ViewModels.LoggerViewModel.VerboseLogLn($"Ejecting disc in drive {_env.Drive.Letter}"); - _env.EjectDisc(); - } } ///