diff --git a/app/gui/oven_control/cooldownpopup.cpp b/app/gui/oven_control/cooldownpopup.cpp
index ffca7b8..897bda2 100644
--- a/app/gui/oven_control/cooldownpopup.cpp
+++ b/app/gui/oven_control/cooldownpopup.cpp
@@ -44,6 +44,8 @@ CooldownPopup::CooldownPopup(QWidget *parent, int target) :
if (needCookStarting)
oven->stopCooking();
+ oven->setFan(expectingFanLevel);
+
connect(oven, SIGNAL(changed(Oven*)), SLOT(updateView()));
cooldownStartTimer.setSingleShot(true);
@@ -272,10 +274,7 @@ void CooldownPopup::on_fanButton_clicked()
if (expectingFanLevel < oven->minFan())
expectingFanLevel = oven->maxFan();
- if (oven->cooldown())
- oven->setFan(expectingFanLevel);
- else
- updateView();
+ oven->setFan(expectingFanLevel);
if (cooldownStartTimer.isActive())
cooldownStartTimer.start();
diff --git a/app/gui/oven_control/define.h b/app/gui/oven_control/define.h
index 68bded0..dc1f870 100644
--- a/app/gui/oven_control/define.h
+++ b/app/gui/oven_control/define.h
@@ -5,7 +5,7 @@
#define MAJOR_VER 1
#define MINOR_VER 5
-#define HOTFIX_VER 01
+#define HOTFIX_VER 02
// 0 for normal
// 1 for premium
diff --git a/app/gui/oven_control/manualcookwindow.cpp b/app/gui/oven_control/manualcookwindow.cpp
index 990e7cb..87c8ea1 100644
--- a/app/gui/oven_control/manualcookwindow.cpp
+++ b/app/gui/oven_control/manualcookwindow.cpp
@@ -487,6 +487,31 @@ QPushButton:focus { background-image: url(%2); }");
int fan = oven->fan();
if (fan != lastViewFan)
{
+ if (lastViewFan != -1)
+ {
+ switch (fan)
+ {
+ case 1:
+ showInfoText("1", ":/images/manual_button/fan_1.png");
+ break;
+ case 2:
+ showInfoText("2", ":/images/manual_button/fan_2.png");
+ break;
+ case 3:
+ showInfoText("3", ":/images/manual_button/fan_3.png");
+ break;
+ case 4:
+ showInfoText("4", ":/images/manual_button/fan_4.png");
+ break;
+ case 5:
+ showInfoText("5", ":/images/manual_button/fan_5.png");
+ break;
+ default:
+ showInfoText("6", ":/images/manual_button/fan_6.png");
+ break;
+ }
+ }
+
lastViewFan = fan;
switch (fan)
@@ -1034,31 +1059,6 @@ void ManualCookWindow::on_fanButton_clicked()
fan = oven->minFan();
oven->setFan(fan);
-
- QString text = QString("%1").arg(fan);
- QString icon;
- switch (fan)
- {
- case 1:
- icon = ":/images/manual_button/fan_1.png";
- break;
- case 2:
- icon = ":/images/manual_button/fan_2.png";
- break;
- case 3:
- icon = ":/images/manual_button/fan_3.png";
- break;
- case 4:
- icon = ":/images/manual_button/fan_4.png";
- break;
- case 5:
- icon = ":/images/manual_button/fan_5.png";
- break;
- default:
- break;
- }
-
- showInfoText(text, icon);
}
void ManualCookWindow::on_preheatButton_clicked()
diff --git a/app/gui/oven_control/manualcookwindow.ui b/app/gui/oven_control/manualcookwindow.ui
index 8d43884..7a66f38 100644
--- a/app/gui/oven_control/manualcookwindow.ui
+++ b/app/gui/oven_control/manualcookwindow.ui
@@ -1322,10 +1322,10 @@ background-repeat: no-repeat;
background-position: center center;
border-radius: 40px;
color: rgba(255, 255, 255, 255);
-margin: 200px 300px;
+margin: 200px 200px;
- <img src=":/images/manual_button/fan_1.png"/><span>1</span>
+ <img src=":/images/manual_button/fan_1.png"/><span> OFF</span>
Qt::AlignCenter