mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-25 18:56:34 +03:00
- Use standard Qt notification as fallback if libnotify failed
This commit is contained in:
parent
17f712e3e0
commit
d227e744d9
1 changed files with 3 additions and 2 deletions
|
@ -67,6 +67,8 @@
|
|||
|
||||
using namespace libtorrent;
|
||||
|
||||
#define TIME_TRAY_BALLOON 5000
|
||||
|
||||
/*****************************************************
|
||||
* *
|
||||
* GUI *
|
||||
|
@ -814,10 +816,9 @@ void GUI::showNotificationBaloon(QString title, QString msg) const {
|
|||
if(success)
|
||||
return;
|
||||
}
|
||||
#else
|
||||
#endif
|
||||
if(systrayIcon)
|
||||
systrayIcon->showMessage(title, msg, QSystemTrayIcon::Information, TIME_TRAY_BALLOON);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue