diff --git a/app/gui/oven_control/define.h b/app/gui/oven_control/define.h index fa12704..951febe 100644 --- a/app/gui/oven_control/define.h +++ b/app/gui/oven_control/define.h @@ -11,6 +11,8 @@ // 1 for premium #define MODEL_GRADE 1 +#define ENABLE_WASH_RESUMING 0 + namespace Define { enum CookType diff --git a/app/gui/oven_control/mainwindow.cpp b/app/gui/oven_control/mainwindow.cpp index 25af5ea..d31fde9 100644 --- a/app/gui/oven_control/mainwindow.cpp +++ b/app/gui/oven_control/mainwindow.cpp @@ -43,7 +43,9 @@ MainWindow::MainWindow(QWidget *parent) : connect(button, SIGNAL(clicked()), SLOT(setFocus())); } +#if ENABLE_WASH_RESUMING QTimer::singleShot(0, this, SLOT(checkPrevWash())); +#endif } MainWindow::~MainWindow() diff --git a/app/gui/oven_control/washwindow.cpp b/app/gui/oven_control/washwindow.cpp index 1428777..aea7b4f 100644 --- a/app/gui/oven_control/washwindow.cpp +++ b/app/gui/oven_control/washwindow.cpp @@ -62,6 +62,7 @@ WashWindow::WashWindow(QWidget *parent) : setFocus(); OvenStatistics *os = OvenStatistics::getInstance(); +#if ENABLE_WASH_RESUMING if (os->loadWashState()) { // Start Cleaning Steam Generator @@ -87,6 +88,7 @@ WashWindow::WashWindow(QWidget *parent) : ui->upperStack->setCurrentIndex(1); } +#endif connect(os, SIGNAL(stopClean()), SLOT(stop())); }