From e5cc981dda68d1d7c6054b4c027ee3976c46eaa5 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 20 Apr 2026 01:48:43 +0200 Subject: [PATCH] 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) --- companion/src/simulation/simulatorwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/simulation/simulatorwidget.cpp b/companion/src/simulation/simulatorwidget.cpp index 878e34c4f..1858135b4 100644 --- a/companion/src/simulation/simulatorwidget.cpp +++ b/companion/src/simulation/simulatorwidget.cpp @@ -422,7 +422,6 @@ void SimulatorWidget::start() emit simulatorInit(); // init simulator default I/O values setupRadioWidgets(); - restoreRadioWidgetsState(); bool tests = !(flags & SIMULATOR_FLAGS_NOTX); if (!startupData.isEmpty()) { @@ -457,6 +456,7 @@ void SimulatorWidget::stop() void SimulatorWidget::onSimulatorStarted() { + restoreRadioWidgetsState(); m_heartbeatTimer.start(); m_timer.start(); }