Verified Commit 5af70dfb authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

app/SettingsBase: Show the main window before QML component is loaded

The loading process usually takes a few seconds on slow machines, and
it even takes 1-2 seconds on my laptop (AMD Ryzen 4700U + SATA SSD), so
instead letting the user wait for nothing, we should show an empty window
to make the startup process "feel" faster.
parent 6627e89e
Pipeline #135912 passed with stage
in 1 minute and 23 seconds
......@@ -335,6 +335,9 @@ void SettingsBase::changePlugin()
return; // Halt now!
}
// Don't let the user wait for nothing until the QML component is loaded.
show();
if (activeView) {
activeView->saveState();
activeView->leaveModuleView();
......@@ -354,8 +357,6 @@ void SettingsBase::changePlugin()
stackedWidget->addWidget(activeView->mainWidget());
}
show();
// Handle the tooltips
qDeleteAll(tooltipManagers);
tooltipManagers.clear();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment