1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 23:55:13 -05:00

Call processEvents to try to avoid not responding warning on Linux

This commit is contained in:
Jon Beniston 2022-12-20 23:16:56 +00:00
parent 2e9b8e3203
commit f2fe6ea940

View File

@ -1363,6 +1363,7 @@ void MainWindow::loadConfiguration(const Configuration *configuration, bool from
waitBox->setMinimumDuration(0);
waitBox->setCancelButton(nullptr);
waitBox->setValue(1);
QApplication::processEvents();
}
// Wipe out everything first
@ -1370,6 +1371,7 @@ void MainWindow::loadConfiguration(const Configuration *configuration, bool from
{
waitBox->setLabelText("Deleting existing...");
waitBox->setValue(5);
QApplication::processEvents();
}
// Device sets
while (m_deviceUIs.size() > 0) {
@ -1402,6 +1404,7 @@ void MainWindow::loadConfiguration(const Configuration *configuration, bool from
{
waitBox->setLabelText("Loading device sets...");
waitBox->setValue(25);
QApplication::processEvents();
}
const QList<Preset>& deviceSetPresets = configuration->getDeviceSetPresets();
@ -1472,8 +1475,10 @@ void MainWindow::loadConfiguration(const Configuration *configuration, bool from
m_deviceUIs.back()->m_mainSpectrumGUI->restoreGeometry(deviceSetPreset.getSpectrumGeometry());
m_deviceUIs.back()->loadDeviceSetSettings(&deviceSetPreset, m_pluginManager->getPluginAPI(), &m_workspaces, nullptr);
if (waitBox) {
if (waitBox)
{
waitBox->setValue(waitBox->value() + 50/deviceSetPresets.size());
QApplication::processEvents();
}
}
@ -1482,6 +1487,7 @@ void MainWindow::loadConfiguration(const Configuration *configuration, bool from
{
waitBox->setLabelText("Loading feature sets...");
waitBox->setValue(75);
QApplication::processEvents();
}
m_featureUIs[0]->loadFeatureSetSettings(
@ -1508,6 +1514,7 @@ void MainWindow::loadConfiguration(const Configuration *configuration, bool from
{
waitBox->setValue(90);
waitBox->setLabelText("Finalizing...");
QApplication::processEvents();
}
for (int i = 0; i < configuration->getNumberOfWorkspaceGeometries(); i++)