Skip to content

Commit

Permalink
[OOBE]Fix welcome page after install (#16561)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimecbernardo committed Feb 24, 2022
1 parent 489335e commit c3b3781
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/runner/main.cpp
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit c3b3781

Please sign in to comment.