mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user