From 239b02d9278562162dfd73c324fd2f80af131dfc Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sat, 19 Jan 2019 17:28:59 -0500 Subject: [PATCH] Only have a relay status if AUTO is enabled --- mainwindow.cpp | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 740f3fe..2b707d7 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -9464,10 +9464,23 @@ QString MainWindow::generateStatus() { QStringList MainWindow::generateStatusFlags() { QStringList flags; - if(ui->hbMacroButton->isChecked() && m_hbInterval > 0) flags.append("HB"); - if(ui->autoReplyButton->isChecked()) flags.append("AUTO"); - if(!m_config.relay_off()) flags.append("RELAY"); - if(ui->spotButton->isChecked()) flags.append("SPOT"); + + if(ui->hbMacroButton->isChecked() && m_hbInterval > 0){ + flags.append("HB"); + } + + if(ui->autoReplyButton->isChecked()){ + flags.append("AUTO"); + } + + if(ui->autoReplyButton->isChecked() && !m_config.relay_off()){ + flags.append("RELAY"); + } + + if(ui->spotButton->isChecked()){ + flags.append("SPOT"); + } + return flags; }