From 2dff6f93940c1d1d16b04d2b33c3b21ba910a186 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 29 Aug 2019 22:26:51 +0100 Subject: WinGui: When using the About Menu -> Update Check, automatically preform the check rather than requiring the user to hit an additional button. --- win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs | 4 ++++ win/CS/HandBrakeWPF/ViewModels/Interfaces/IOptionsViewModel.cs | 2 ++ 2 files changed, 6 insertions(+) (limited to 'win') diff --git a/win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs b/win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs index fd3a5f5f7..dced5d9c9 100644 --- a/win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs +++ b/win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs @@ -62,6 +62,10 @@ namespace HandBrakeWPF.Commands if (parameter != null && parameter.GetType() == typeof(OptionsTab)) { optionsViewModel.GotoTab((OptionsTab)parameter); + if (((OptionsTab)parameter).Equals(OptionsTab.Updates)) + { + optionsViewModel.PerformUpdateCheck(); + } } } } diff --git a/win/CS/HandBrakeWPF/ViewModels/Interfaces/IOptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/Interfaces/IOptionsViewModel.cs index ee2379045..7f4fabacb 100644 --- a/win/CS/HandBrakeWPF/ViewModels/Interfaces/IOptionsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/Interfaces/IOptionsViewModel.cs @@ -35,5 +35,7 @@ namespace HandBrakeWPF.ViewModels.Interfaces void UpdateSettings(); void Close(); + + void PerformUpdateCheck(); } } \ No newline at end of file -- cgit v1.2.3