Do not hide the window to system tray when minimising if not available
This commit is contained in:
parent
00565fa7ea
commit
35cc645637
|
@ -1277,7 +1277,8 @@ void MainWindow::bonjourInstallFinished()
|
|||
|
||||
void MainWindow::windowStateChanged()
|
||||
{
|
||||
if (windowState() == Qt::WindowMinimized && appConfig().getMinimizeToTray())
|
||||
// If we are minimising and minimise to tray is enabled and system tray is available then hide the window
|
||||
if (windowState() == Qt::WindowMinimized && appConfig().getMinimizeToTray() && QSystemTrayIcon::isSystemTrayAvailable())
|
||||
hide();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue