From 847a14c2ca420853debf262db8346fb5d13e78ad Mon Sep 17 00:00:00 2001 From: taehoon Date: Fri, 7 Jan 2022 14:42:31 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=B8=EC=B2=99=20=EC=9D=B4=EC=96=B4?= =?UTF-8?q?=ED=95=98=EA=B8=B0=20=EA=B8=B0=EB=8A=A5=20=EB=B9=84=ED=99=9C?= =?UTF-8?q?=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 세척 기능에 문제가 생긴 경우 정상 사용 불가한 문제가 있음 --- app/gui/oven_control/define.h | 2 ++ app/gui/oven_control/mainwindow.cpp | 2 ++ app/gui/oven_control/washwindow.cpp | 2 ++ 3 files changed, 6 insertions(+) diff --git a/app/gui/oven_control/define.h b/app/gui/oven_control/define.h index 2a88a67..0a65f1d 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 0 +#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())); } -- 2.1.4