Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

fix(boot): system tray icon may not be initialized on early crash

Lars Berger5f0878fb072a
diff --git a/GlazeWM.Bootstrapper/Startup.cs b/GlazeWM.Bootstrapper/Startup.cs
index f9df53a7..b81a1ebb 100644
--- a/GlazeWM.Bootstrapper/Startup.cs
+++ b/GlazeWM.Bootstrapper/Startup.cs
@@ -95,7 +95,7 @@ namespace GlazeWM.Bootstrapper
{
_bus.Invoke(new ShowAllWindowsCommand());
_barService.ExitApp();
- _systemTrayIcon.Remove();
+ _systemTrayIcon?.Remove();
Application.Exit();
}
}