mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Fix issue when "minimize to systray" and "start minimized" are both enabled.
Window could not be restored.
This commit is contained in:
parent
4ff249525b
commit
c5841146ff
1 changed files with 7 additions and 3 deletions
|
@ -255,9 +255,13 @@ MainWindow::MainWindow(QWidget *parent, const QStringList& torrentCmdLine) : QMa
|
||||||
readSettings();
|
readSettings();
|
||||||
|
|
||||||
if (!ui_locked) {
|
if (!ui_locked) {
|
||||||
if (pref.startMinimized() && systrayIcon)
|
if (pref.startMinimized() && systrayIcon) {
|
||||||
showMinimized();
|
show();
|
||||||
else {
|
minimizeWindow();
|
||||||
|
// XXX: Using showMinimized() makes it impossible to restore
|
||||||
|
// the window if "Minimize to systray" is enabled.
|
||||||
|
//showMinimized();
|
||||||
|
} else {
|
||||||
show();
|
show();
|
||||||
activateWindow();
|
activateWindow();
|
||||||
raise();
|
raise();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue