mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Cleanup mainwindow startup code
This commit is contained in:
parent
8fd7b86f45
commit
9b6b357c9e
2 changed files with 6 additions and 9 deletions
|
@ -233,8 +233,6 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||
if(!autoShutdownGroup->checkedAction())
|
||||
actionAutoShutdown_Disabled->setChecked(true);
|
||||
|
||||
show();
|
||||
|
||||
// Load Window state and sizes
|
||||
readSettings();
|
||||
properties->readSettings();
|
||||
|
@ -242,13 +240,14 @@ MainWindow::MainWindow(QWidget *parent, QStringList torrentCmdLine) : QMainWindo
|
|||
// Limit status filters list height
|
||||
transferListFilters->getStatusFilters()->updateHeight();
|
||||
|
||||
if(ui_locked) {
|
||||
hide();
|
||||
} else {
|
||||
if(!ui_locked) {
|
||||
if(pref.startMinimized())
|
||||
showMinimized();
|
||||
else
|
||||
setFocus();
|
||||
else {
|
||||
show();
|
||||
activateWindow();
|
||||
raise();
|
||||
}
|
||||
}
|
||||
|
||||
// Start watching the executable for updates
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue