Mon, 16 May 2022 09:22:28 +0200
Only show brew_log prompt and button if there is a log.
src/EditProductTab1.cpp | file | annotate | diff | comparison | revisions |
--- a/src/EditProductTab1.cpp Sun May 15 23:10:15 2022 +0200 +++ b/src/EditProductTab1.cpp Mon May 16 09:22:28 2022 +0200 @@ -299,6 +299,13 @@ /* Tab 9, brewday */ ui->tabWidget->setTabEnabled(8, stage > PROD_STAGE_PLAN); + if (product->log_brew) { + ui->brew_logLabel->show(); + ui->brew_logButton->show(); + } else { + ui->brew_logLabel->hide(); + ui->brew_logButton->hide(); + } if (product->stage < PROD_STAGE_BREW) { ui->brew_startButton1->show(); ui->brew_startButton2->show();