fix: guard updateTrayMenu against null tray on early window events
All checks were successful
Build & Release / build (push) Successful in 2m25s
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:
parent
a031911156
commit
a2a7eb6cd7
1 changed files with 1 additions and 0 deletions
|
|
@ -40,6 +40,7 @@ export function initTray() {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function updateTrayMenu() {
|
export function updateTrayMenu() {
|
||||||
|
if (!tray) return;
|
||||||
tray.setContextMenu(
|
tray.setContextMenu(
|
||||||
Menu.buildFromTemplate([
|
Menu.buildFromTemplate([
|
||||||
{ label: "Sanctum", type: "normal", enabled: false },
|
{ label: "Sanctum", type: "normal", enabled: false },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue