fix(sim): connect to the simulator on page load even with auto-reconnect off (1.65.2)

This commit is contained in:
larssand committed 2026-11-05 19:18:31 +01:00
1 parent e682a2056c
commit 62ec97c9e9
4 files changed
+11 -4

No files matched your search

+2 -1
View File
@@ -5476,7 +5476,8 @@ async function init() {
setupLanguageControl();
updateHeaderState();
updateConnectionBadge();
if (state.settings.wsUrl && state.settings.autoReconnect && !state.decoder.connected) {
// The decoder simulator (Settings) is connected on load even with auto-reconnect off.
if (state.settings.wsUrl && (state.settings.autoReconnect || state.settings.simPreviousWsUrl) && !state.decoder.connected) {
connectDecoder();
}
});