Fix example in documentation (#447)
This commit is contained in:
parent
dda2debf36
commit
c57a6048cf
@ -22,6 +22,7 @@ const trayIcon = new QIcon(
|
||||
resolve(__dirname, "some/image/file.png");
|
||||
);
|
||||
const tray = new QSystemTrayIcon();
|
||||
tray.setIcon(trayIcon);
|
||||
tray.show();
|
||||
|
||||
global.tray = tray; // prevents garbage collection of tray
|
||||
|
||||
@ -18,6 +18,7 @@ const trayIcon = new QIcon(
|
||||
resolve(__dirname, "some/image/file.png");
|
||||
);
|
||||
const tray = new QSystemTrayIcon();
|
||||
tray.setIcon(trayIcon);
|
||||
tray.show();
|
||||
|
||||
global.tray = tray; // prevents garbage collection of tray
|
||||
|
||||
Loading…
Reference in New Issue
Block a user