[OOBE]Add What's New page - SCOOBE (#16478)

* [Oobe]Add a What's New page

* Show What's New when version changes

* Add link to GitHub

* Use generic icon for now

* Get only the latest 5 releases

* fix spellchecker

* rename last_version_run.json

* Remove UserControl_Loaded

* Remove installer hash from the release notes

* constexpr some strings

* Add check your internet connection message
This commit is contained in:
Jaime Bernardo
2022-02-22 11:02:08 +00:00
committed by GitHub
parent e9dccf82ab
commit 87bb89ab15
18 changed files with 322 additions and 25 deletions

View File

@@ -20,6 +20,7 @@ namespace PowerToys.Settings
{
private static Window inst;
private OobeShellPage shellPage;
private int initialModule;
public static bool IsOpened
{
@@ -29,10 +30,11 @@ namespace PowerToys.Settings
}
}
public OobeWindow()
public OobeWindow(int initialModule)
{
InitializeComponent();
Utils.FitToScreen(this);
this.initialModule = initialModule;
ResourceLoader loader = ResourceLoader.GetForViewIndependentUse();
Title = loader.GetString("OobeWindow_Title");
@@ -69,6 +71,11 @@ namespace PowerToys.Settings
WindowsXamlHost windowsXamlHost = sender as WindowsXamlHost;
shellPage = windowsXamlHost.GetUwpInternalObject() as OobeShellPage;
if (shellPage != null)
{
shellPage.NavigateToModule(initialModule);
}
OobeShellPage.SetRunSharedEventCallback(() =>
{
return Constants.PowerLauncherSharedEvent();