AUTO+CONF dynamic update

This commit is contained in:
Jordan Sherer 2020-03-28 15:30:02 -04:00
parent f304d31960
commit f072ec74ed

View File

@ -2806,10 +2806,12 @@ void MainWindow::on_menuModeJS8_aboutToShow(){
auto autoreplyText = ui->actionModeAutoreply->text();
if(m_config.autoreply_confirmation() && !autoreplyText.contains(" with Confirmation")){
autoreplyText.replace("Autoreply", "Autoreply with Confirmation");
autoreplyText.replace("&AUTO", "&AUTO+CONF");
ui->actionModeAutoreply->setText(autoreplyText);
}
else if(!m_config.autoreply_confirmation() && autoreplyText.contains(" with Confirmation")){
autoreplyText.replace(" with Confirmation", "");
autoreplyText.replace("+CONF", "");
ui->actionModeAutoreply->setText(autoreplyText);
}
}