From b8ce26670e0f2b51a90a14f5bd7f1f89b04588c8 Mon Sep 17 00:00:00 2001 From: PianetaRadio <78976006+PianetaRadio@users.noreply.github.com> Date: Wed, 22 Feb 2023 20:32:58 +0100 Subject: [PATCH] Power button #36 --- mainwindow.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 90c2544..3122bc6 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -382,7 +382,7 @@ void MainWindow::guiUpdate() { if(timer->isActive()) timer->stop(); ui->pushButton_Power->setChecked(false); - ui->statusbar->showMessage("Power off"); + ui->statusbar->showMessage("Radio off"); } //* VFOs @@ -779,7 +779,11 @@ void MainWindow::on_pushButton_Power_toggled(bool checked) ui->pushButton_Power->setChecked(false); //Uncheck the button ui->statusbar->showMessage(rigerror(retcode)); } - else timer->start(rigCom.rigRefresh); + else + { + rigGet.onoff = RIG_POWER_ON; + timer->start(rigCom.rigRefresh); + } } else if (!checked && rigGet.onoff) {