Merge pull request #169 from dimitarnestorov/patch-1

Fixing code example of QSystemTrayIcon
This commit is contained in:
Atul R 2019-11-01 22:25:15 +01:00 committed by GitHub
commit b08bd05909
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ const trayIcon = new QIcon(
const tray = new QSystemTrayIcon();
tray.show();
global.trayIcon = trayIcon; // prevent's gc of trayIcon
global.tray = tray; // prevents garbage collection of tray
```
### `new QSystemTrayIcon(parent?)`