summaryrefslogtreecommitdiffstats
path: root/openrecoveryscript.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2013-01-26 15:07:43 +0100
committerDees_Troy <dees_troy@teamw.in>2013-01-28 16:20:56 +0100
commit6bdcbb1b9643d53cfc415322bf9d5753305a2141 (patch)
treef95e22972d75bada910d15bc249f2da9d3ead25b /openrecoveryscript.cpp
parentfile manager updates for exFAT (diff)
downloadandroid_bootable_recovery-6bdcbb1b9643d53cfc415322bf9d5753305a2141.tar
android_bootable_recovery-6bdcbb1b9643d53cfc415322bf9d5753305a2141.tar.gz
android_bootable_recovery-6bdcbb1b9643d53cfc415322bf9d5753305a2141.tar.bz2
android_bootable_recovery-6bdcbb1b9643d53cfc415322bf9d5753305a2141.tar.lz
android_bootable_recovery-6bdcbb1b9643d53cfc415322bf9d5753305a2141.tar.xz
android_bootable_recovery-6bdcbb1b9643d53cfc415322bf9d5753305a2141.tar.zst
android_bootable_recovery-6bdcbb1b9643d53cfc415322bf9d5753305a2141.zip
Diffstat (limited to 'openrecoveryscript.cpp')
-rw-r--r--openrecoveryscript.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/openrecoveryscript.cpp b/openrecoveryscript.cpp
index 6df1207b9..e319a9c61 100644
--- a/openrecoveryscript.cpp
+++ b/openrecoveryscript.cpp
@@ -75,6 +75,7 @@ int OpenRecoveryScript::run_script_file(void) {
if (fp != NULL) {
DataManager::SetValue(TW_SIMULATE_ACTIONS, 0);
+ DataManager::SetValue("ui_progress", 0); // Reset the progress bar
while (fgets(script_line, SCRIPT_COMMAND_SIZE, fp) != NULL && ret_val == 0) {
cindex = 0;
line_len = strlen(script_line);
@@ -572,4 +573,4 @@ void OpenRecoveryScript::Run_OpenRecoveryScript(void) {
if (gui_startPage("action_page") != 0) {
LOGE("Failed to load OpenRecoveryScript GUI page.\n");
}
-} \ No newline at end of file
+}