fix: guard updateTrayMenu against null tray on early window events
All checks were successful
Build & Release / build (push) Successful in 2m25s

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
MiTHRAL 2026-04-22 02:14:50 -04:00
parent a031911156
commit a2a7eb6cd7

View file

@ -40,6 +40,7 @@ export function initTray() {
}
export function updateTrayMenu() {
if (!tray) return;
tray.setContextMenu(
Menu.buildFromTemplate([
{ label: "Sanctum", type: "normal", enabled: false },