mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-07 18:50:57 +00:00
Fix issue with unreversible "Minimize to tray"
This commit is contained in:
parent
80359f3e5e
commit
2eae22ac06
@ -703,13 +703,6 @@ void MainWindow::toggleVisibility(QSystemTrayIcon::ActivationReason e) {
|
||||
return;
|
||||
}
|
||||
show();
|
||||
if (isMinimized()) {
|
||||
if (isMaximized()) {
|
||||
showMaximized();
|
||||
}else{
|
||||
showNormal();
|
||||
}
|
||||
}
|
||||
raise();
|
||||
activateWindow();
|
||||
}else{
|
||||
@ -819,7 +812,7 @@ bool MainWindow::event(QEvent * e) {
|
||||
// Iconify if there is no modal window
|
||||
if (!has_modal_window) {
|
||||
qDebug("Minimize to Tray enabled, hiding!");
|
||||
e->accept();
|
||||
e->ignore();
|
||||
QTimer::singleShot(0, this, SLOT(hide()));
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user