mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
Fixed hide on startup problem (#852)
* Fixed HideOnStartup * Fixed tray icon not showing up and hiding properly
This commit is contained in:
@@ -60,10 +60,7 @@ namespace Wox
|
||||
AutoStartup();
|
||||
AutoUpdates();
|
||||
|
||||
if (!_settings.HideOnStartup)
|
||||
{
|
||||
mainVM.MainWindowVisibility = Visibility.Visible;
|
||||
}
|
||||
mainVM.MainWindowVisibility = _settings.HideOnStartup ? Visibility.Hidden : Visibility.Visible;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -102,7 +99,7 @@ namespace Wox
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// let exception throw as normal is better for Debug
|
||||
/// let exception throw as normal is better for Debug
|
||||
/// </summary>
|
||||
[Conditional("RELEASE")]
|
||||
private void RegisterDispatcherUnhandledException()
|
||||
@@ -113,7 +110,7 @@ namespace Wox
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// let exception throw as normal is better for Debug
|
||||
/// let exception throw as normal is better for Debug
|
||||
/// </summary>
|
||||
[Conditional("RELEASE")]
|
||||
private static void RegisterAppDomainExceptions()
|
||||
|
||||
Reference in New Issue
Block a user