mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-02 09:55:55 +00:00
Disable system tray icon menu when app is exiting
This commit is contained in:
parent
35c31906b7
commit
b8a84dbd83
@ -1218,10 +1218,13 @@ void MainWindow::closeEvent(QCloseEvent *e)
|
||||
}
|
||||
}
|
||||
|
||||
// Disable some UI to prevent user interactions
|
||||
#ifndef Q_OS_MACOS
|
||||
// Hide tray icon
|
||||
if (m_systrayIcon)
|
||||
m_systrayIcon->hide();
|
||||
{
|
||||
m_systrayIcon->setToolTip(tr("qBittorrent is shutting down..."));
|
||||
m_trayIconMenu->setEnabled(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Accept exit
|
||||
|
Loading…
x
Reference in New Issue
Block a user