[OOBE]Fix welcome page after install (#16561)

This commit is contained in:
Jaime Bernardo
2022-02-24 14:42:29 +00:00
committed by GitHub
parent 489335e4d0
commit c3b378101c

View File

@@ -195,6 +195,7 @@ int runner(bool isProcessElevated, bool openSettings, std::string settingsWindow
if (openOobe)
{
PTSettingsHelper::save_oobe_opened_state();
open_oobe_window();
}
else if (openScoobe)
@@ -370,10 +371,6 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
try
{
openOobe = !PTSettingsHelper::get_oobe_opened_state();
if (openOobe)
{
PTSettingsHelper::save_oobe_opened_state();
}
}
catch (const std::exception& e)
{