Only call QSystemTrayIcon::isSystemTrayAvailable once

Workaround file descriptor leak

Fixes #724
This commit is contained in:
Jonas Kvinge
2021-06-15 00:25:54 +02:00
parent ec3bcdcb26
commit 081df59ed7
7 changed files with 28 additions and 19 deletions

View File

@@ -43,6 +43,7 @@ class SystemTrayIcon : public QObject {
~SystemTrayIcon();
bool isSystemTrayAvailable() { return true; }
bool IsSystemTrayAvailable() { return true; }
void setVisible(const bool) {}
void SetTrayiconProgress(const bool enabled);