Only have a relay status if AUTO is enabled

This commit is contained in:
Jordan Sherer 2019-01-19 17:28:59 -05:00
parent 55d76dc67f
commit 239b02d927

View File

@ -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;
}