mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix issue when "minimize to systray" and "start minimized" are both enabled.
Window could not be restored.
This commit is contained in:
parent
ca0af8c858
commit
cfd2576002
1 changed files with 7 additions and 3 deletions
|
@ -255,9 +255,13 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||
readSettings();
|
||||
|
||||
if(!ui_locked) {
|
||||
if(pref.startMinimized() && systrayIcon)
|
||||
showMinimized();
|
||||
else {
|
||||
if(pref.startMinimized() && systrayIcon) {
|
||||
show();
|
||||
minimizeWindow();
|
||||
// XXX: Using showMinimized() makes it impossible to restore
|
||||
// the window if "Minimize to systray" is enabled.
|
||||
//showMinimized();
|
||||
} else {
|
||||
show();
|
||||
activateWindow();
|
||||
raise();
|
||||
|
|
Loading…
Reference in a new issue