Add helper for changing dumping program from UI

This commit is contained in:
Matt Nadareski
2023-08-26 23:17:49 -04:00
parent ff40d18ed3
commit d92a1d566d
2 changed files with 12 additions and 1 deletions

View File

@@ -2,6 +2,7 @@
- Add CD Projekt ID field
- Fix speed setting in Aaru
- Add helper for changing dumping program from UI
### 2.6.3 (2023-08-15)

View File

@@ -217,6 +217,16 @@ namespace MPF.UI.ViewModels
#region UI Commands
/// <summary>
/// Change the currently selected dumping program
/// </summary>
public void ChangeDumpingProgram()
{
App.Logger.VerboseLogLn($"Changed dumping program to: {(App.Instance.DumpingProgramComboBox.SelectedItem as Element<InternalProgram>).Name}");
GetOutputNames(false);
EnsureDiscInformation();
}
/// <summary>
/// Change the currently selected media type
/// </summary>
@@ -1452,7 +1462,7 @@ namespace MPF.UI.ViewModels
private void DumpingProgramComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (_canExecuteSelectionChanged)
EnsureDiscInformation();
ChangeDumpingProgram();
}
/// <summary>