From 8baf512eb356925b99183ced754d667d3511b230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Martign=C3=A8ne?= Date: Mon, 2 Dec 2019 10:11:24 +0100 Subject: [PATCH] Fix unsynced serial rate setting when using "Enable Serial" button --- src/tycommander/main_window.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tycommander/main_window.cc b/src/tycommander/main_window.cc index 3a99d834..88f9a0b0 100644 --- a/src/tycommander/main_window.cc +++ b/src/tycommander/main_window.cc @@ -985,7 +985,6 @@ void MainWindow::refreshInterfaces() interfaceTree->addTopLevelItem(item); } - rateComboBox->setEnabled(current_board_->serialIsSerial()); ambiguousBoardLabel->setVisible(!current_board_->hasCapability(TY_BOARD_CAPABILITY_UNIQUE)); } @@ -1001,6 +1000,8 @@ void MainWindow::refreshStatus() } else { statusProgressBar->hide(); } + + rateComboBox->setEnabled(current_board_->serialIsSerial()); } void MainWindow::refreshProgress()