diff options
author | sr55 <[email protected]> | 2019-08-29 22:26:51 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-08-29 22:26:51 +0100 |
commit | 2dff6f93940c1d1d16b04d2b33c3b21ba910a186 (patch) | |
tree | ca9a699312bb1b0510ed50971f6d5229831faf63 /win | |
parent | 3293f1984f227a61dfe0f0d130bad8d09b19025d (diff) |
WinGui: When using the About Menu -> Update Check, automatically preform the check rather than requiring the user to hit an additional button.
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/Commands/OpenOptionsScreenCommand.cs | 4 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/Interfaces/IOptionsViewModel.cs | 2 |
2 files changed, 6 insertions, 0 deletions
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 |