fix(sim): restore switch positions after simulator startup (#7262)
Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
raphaelcoeffic
Claude Opus 4.6
parent
5e2ebb6ef5
commit
e5cc981dda
@@ -422,7 +422,6 @@ void SimulatorWidget::start()
|
|||||||
emit simulatorInit(); // init simulator default I/O values
|
emit simulatorInit(); // init simulator default I/O values
|
||||||
|
|
||||||
setupRadioWidgets();
|
setupRadioWidgets();
|
||||||
restoreRadioWidgetsState();
|
|
||||||
|
|
||||||
bool tests = !(flags & SIMULATOR_FLAGS_NOTX);
|
bool tests = !(flags & SIMULATOR_FLAGS_NOTX);
|
||||||
if (!startupData.isEmpty()) {
|
if (!startupData.isEmpty()) {
|
||||||
@@ -457,6 +456,7 @@ void SimulatorWidget::stop()
|
|||||||
|
|
||||||
void SimulatorWidget::onSimulatorStarted()
|
void SimulatorWidget::onSimulatorStarted()
|
||||||
{
|
{
|
||||||
|
restoreRadioWidgetsState();
|
||||||
m_heartbeatTimer.start();
|
m_heartbeatTimer.start();
|
||||||
m_timer.start();
|
m_timer.start();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user