This commit is contained in:
2026-02-14 14:32:34 +01:00
parent fbf8f53090
commit a3a1657fb8
+6 -3
View File
@@ -133,13 +133,16 @@ void Simulators::switch_simulator(std::string name)
} }
this->m_current_simulator = name; this->m_current_simulator = name;
connect(m_simulators.at(m_current_simulator).get(), &Simulator_base::sim_changed, this, connect(
m_simulators.at(m_current_simulator).get(), &Simulator_base::sim_changed, this,
[this] { [this] {
auto json = changed_UI_items(); auto json = changed_UI_items();
if (!json.empty()) { if (!json.empty())
{
m_server->broadcast(QString::fromStdString(json.dump())); m_server->broadcast(QString::fromStdString(json.dump()));
} }
}, Qt::QueuedConnection); },
Qt::QueuedConnection);
this->start(); this->start();
} }