From 48d271578b8b08f7763dd1afdc9484f394c5c424 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Wed, 9 Sep 2020 15:01:05 +1000 Subject: [PATCH] fix segfault on app start with tray icon --- app/tray_icon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/tray_icon.js b/app/tray_icon.js index f803ac6b0..88a32ac93 100644 --- a/app/tray_icon.js +++ b/app/tray_icon.js @@ -65,12 +65,12 @@ function createTrayIcon(getMainWindow, messages) { trayContextMenu = Menu.buildFromTemplate([ { id: 'toggleWindowVisibility', - label: messages[mainWindow.isVisible() ? 'hide' : 'show'].message, + label: messages[mainWindow.isVisible() ? 'appMenuHide' : 'show'].message, click: tray.toggleWindowVisibility, }, { id: 'quit', - label: messages.quit.message, + label: messages.appMenuQuit.message, click: app.quit.bind(app), }, ]);