Fix freeze when showing setup wizzard
Some checks failed
debian-build / build (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled

This commit is contained in:
WarmUpTill
2026-05-25 12:04:57 +02:00
parent c2b73a02ca
commit d61099f9c0

View File

@@ -41,9 +41,12 @@ AdvSceneSwitcher::AdvSceneSwitcher(QWidget *parent)
{
switcher->settingsWindowOpened = true;
ui->setupUi(this);
std::lock_guard<std::mutex> lock(switcher->m);
switcher->Prune();
LoadUI();
{
std::lock_guard<std::mutex> lock(switcher->m);
switcher->Prune();
LoadUI();
}
CheckFirstTimeSetup();
}
AdvSceneSwitcher::~AdvSceneSwitcher()
@@ -139,7 +142,6 @@ void AdvSceneSwitcher::LoadUI()
SetTabOrder(ui->tabWidget);
SetCurrentTab(ui->tabWidget);
RestoreWindowGeo();
CheckFirstTimeSetup();
loading = false;
}