mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-03 02:14:16 +00:00
Make sure the window is not hidden on startup if no system tray
icon is available
This commit is contained in:
parent
f2e222adb1
commit
7a7016b4bd
@ -252,7 +252,7 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||||||
readSettings();
|
readSettings();
|
||||||
|
|
||||||
if(!ui_locked) {
|
if(!ui_locked) {
|
||||||
if(pref.startMinimized())
|
if(pref.startMinimized() && systrayIcon)
|
||||||
showMinimized();
|
showMinimized();
|
||||||
else {
|
else {
|
||||||
show();
|
show();
|
||||||
@ -304,6 +304,13 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||||||
updater->checkForUpdates();
|
updater->checkForUpdates();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Make sure the Window is visible if we don't have a tray icon
|
||||||
|
if (!systrayIcon && isHidden()) {
|
||||||
|
show();
|
||||||
|
activateWindow();
|
||||||
|
raise();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::deleteBTSession() {
|
void MainWindow::deleteBTSession() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user