[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{ {