mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 00:33:09 -07:00
Fix notification display on macOS
This commit is contained in:
parent
f98edcab5c
commit
eb8ff91c5d
3 changed files with 16 additions and 1 deletions
|
@ -1553,7 +1553,9 @@ void MainWindow::showNotificationBaloon(QString title, QString msg) const
|
|||
reply.waitForFinished();
|
||||
if (!reply.isError())
|
||||
return;
|
||||
#elif (!defined(Q_OS_MAC))
|
||||
#elif defined(Q_OS_MAC)
|
||||
displayNotification(title, msg);
|
||||
#else
|
||||
if (m_systrayIcon && QSystemTrayIcon::supportsMessages())
|
||||
m_systrayIcon->showMessage(title, msg, QSystemTrayIcon::Information, TIME_TRAY_BALLOON);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue