mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-11 20:23:07 +08:00
[OOBE]Fix welcome page after install (#16561)
This commit is contained in:
parent
489335e4d0
commit
c3b378101c
@ -195,6 +195,7 @@ int runner(bool isProcessElevated, bool openSettings, std::string settingsWindow
|
|||||||
|
|
||||||
if (openOobe)
|
if (openOobe)
|
||||||
{
|
{
|
||||||
|
PTSettingsHelper::save_oobe_opened_state();
|
||||||
open_oobe_window();
|
open_oobe_window();
|
||||||
}
|
}
|
||||||
else if (openScoobe)
|
else if (openScoobe)
|
||||||
@ -370,10 +371,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
openOobe = !PTSettingsHelper::get_oobe_opened_state();
|
openOobe = !PTSettingsHelper::get_oobe_opened_state();
|
||||||
if (openOobe)
|
|
||||||
{
|
|
||||||
PTSettingsHelper::save_oobe_opened_state();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (const std::exception& e)
|
catch (const std::exception& e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user