mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 11:16:51 +02:00
[Settings] 'Check for updates' button behavior changed (#4385)
This commit is contained in:
@@ -352,7 +352,16 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
// callback function to launch the URL to check for updates.
|
||||
private async void CheckForUpdates_Click()
|
||||
{
|
||||
await Launcher.LaunchUriAsync(new Uri("https://github.com/microsoft/PowerToys/releases"));
|
||||
GeneralSettings settings = SettingsUtils.GetSettings<GeneralSettings>(string.Empty);
|
||||
settings.CustomActionName = "check_for_updates";
|
||||
|
||||
OutGoingGeneralSettings outsettings = new OutGoingGeneralSettings(settings);
|
||||
GeneralSettingsCustomAction customaction = new GeneralSettingsCustomAction(outsettings);
|
||||
|
||||
if (ShellPage.CheckForUpdatesMsgCallback != null)
|
||||
{
|
||||
ShellPage.CheckForUpdatesMsgCallback(customaction.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
public void Restart_Elevated()
|
||||
|
||||
Reference in New Issue
Block a user