mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-04 05:35:52 +00:00
Experiment with only showing media type box for DIC
This commit is contained in:
@@ -113,6 +113,9 @@ namespace MPF.UI.Windows
|
||||
// Set the UI color scheme according to the options
|
||||
ApplyTheme();
|
||||
|
||||
// Hide or show the media type box based on program
|
||||
SetMediaTypeVisibility();
|
||||
|
||||
// Check for updates, if necessary
|
||||
if (MainViewModel.Options.CheckForUpdatesOnStartup)
|
||||
CheckForUpdates(showIfSame: false);
|
||||
@@ -343,6 +346,16 @@ namespace MPF.UI.Windows
|
||||
optionsWindow.Show();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set media type combo box visibility based on current program
|
||||
/// </summary>
|
||||
public void SetMediaTypeVisibility()
|
||||
{
|
||||
MediaTypeComboBox!.Visibility = MainViewModel.CurrentProgram == InternalProgram.DiscImageCreator
|
||||
? Visibility.Visible
|
||||
: Visibility.Hidden;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set the UI color scheme according to the options
|
||||
/// </summary>
|
||||
@@ -530,7 +543,10 @@ namespace MPF.UI.Windows
|
||||
public void DumpingProgramComboBoxSelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
if (MainViewModel.CanExecuteSelectionChanged)
|
||||
{
|
||||
MainViewModel.ChangeDumpingProgram();
|
||||
SetMediaTypeVisibility();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user