diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/Commands')
-rw-r--r-- | win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs b/win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs index 5bfbb22d7..238e6655f 100644 --- a/win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs +++ b/win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs @@ -50,11 +50,17 @@ namespace HandBrakeWPF.Commands public void Execute(object parameter)
{
var shellViewModel = IoC.Get<IShellViewModel>();
+ var optionsViewModel = IoC.Get<IOptionsViewModel>();
+
shellViewModel.DisplayWindow(ShellWindow.OptionsWindow);
+ if (parameter == null && optionsViewModel.SelectedTab == OptionsTab.About)
+ {
+ optionsViewModel.GotoTab(OptionsTab.General);
+ }
+
if (parameter != null && parameter.GetType() == typeof(OptionsTab))
{
- var optionsViewModel = IoC.Get<IOptionsViewModel>();
optionsViewModel.GotoTab((OptionsTab)parameter);
}
}
|