Hide main settings window instead of closing (#17960)

* Hide main settings window instead of closing

* Proper closing

* Create Settings window hidden if opening OOBE/SCOOBE
This commit is contained in:
Stefan Markovic
2022-05-19 15:12:59 +02:00
committed by GitHub
parent ab4328310c
commit 88e79ac669
4 changed files with 38 additions and 4 deletions

View File

@@ -149,9 +149,11 @@ namespace Microsoft.PowerToys.Settings.UI
}
else
{
// Create the Settings window so that it's fully initialized and
// Create the Settings window hidden so that it's fully initialized and
// it will be ready to receive the notification if the user opens
// the Settings from the tray icon.
settingsWindow = new MainWindow(true);
if (ShowOobe)
{
PowerToysTelemetry.Log.WriteEvent(new OobeStartedEvent());