From c3b378101c5cee7987dfae6e4a02f5e416412ee9 Mon Sep 17 00:00:00 2001 From: Jaime Bernardo Date: Thu, 24 Feb 2022 14:42:29 +0000 Subject: [PATCH] [OOBE]Fix welcome page after install (#16561) --- src/runner/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/runner/main.cpp b/src/runner/main.cpp index 8350285694e..094c3d18b98 100644 --- a/src/runner/main.cpp +++ b/src/runner/main.cpp @@ -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) {