summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index ee3373154..d67e697b0 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -40,8 +40,9 @@
#include "../openrecoveryscript.hpp"
#include "../adb_install.h"
+#ifndef TW_NO_SCREEN_TIMEOUT
#include "blanktimer.hpp"
-
+#endif
extern "C" {
#include "../twcommon.h"
#include "../minuitwrp/minui.h"
@@ -59,7 +60,9 @@ int gui_start();
#include "rapidxml.hpp"
#include "objects.hpp"
+#ifndef TW_NO_SCREEN_TIMEOUT
extern blanktimer blankTimer;
+#endif
void curtainClose(void);
@@ -339,7 +342,9 @@ void GUIAction::operation_end(const int operation_status, const int simulate)
}
DataManager::SetValue("tw_operation_state", 1);
DataManager::SetValue(TW_ACTION_BUSY, 0);
+#ifndef TW_NO_SCREEN_TIMEOUT
blankTimer.resetTimerAndUnblank();
+#endif
}
int GUIAction::doAction(Action action, int isThreaded /* = 0 */)