Commit 48fd0bd7 authored by Michael Koch's avatar Michael Koch
Browse files

Fix segfault (tray icons now apparently need a context menu)

parent 9afb3a92
......@@ -91,8 +91,22 @@ function createTray() {
}
}
]);
var contextMenuKiosk = Menu.buildFromTemplate([
{
label: l10n.getString(56),
click: function() {
if (! _windowCreated) {
createWindow();
} else {
mainWindow.show();
}
}
}
]);
tray.setToolTip(l10n.getString(0));
if (! _kiosk) {
if (_kiosk) {
tray.setContextMenu(contextMenuKiosk);
} else {
tray.setContextMenu(contextMenu);
}
tray.on('click', function() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment