バルーン通知をクリックした場合にメイン画面にフォーカスを移す
This commit is contained in:
@@ -54,6 +54,9 @@ app.on('ready', function() {
|
|||||||
if (process.platform === 'win32') {
|
if (process.platform === 'win32') {
|
||||||
trayIcon = new Tray(__dirname + '/tray.png');
|
trayIcon = new Tray(__dirname + '/tray.png');
|
||||||
trayIcon.setToolTip(app.getName());
|
trayIcon.setToolTip(app.getName());
|
||||||
|
trayIcon.on('balloon-clicked', function() {
|
||||||
|
mainWindow.focus();
|
||||||
|
});
|
||||||
ipc.on('notified', function(event, arg) {
|
ipc.on('notified', function(event, arg) {
|
||||||
trayIcon.displayBalloon({
|
trayIcon.displayBalloon({
|
||||||
title: arg.title,
|
title: arg.title,
|
||||||
|
Reference in New Issue
Block a user