mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 05:06:36 +02:00
[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user