mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 09:28:03 +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)
|
||||
{
|
||||
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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user