summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorbigbiff <bigbiff@teamw.in>2016-03-02 01:40:36 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-03-31 20:34:49 +0200
commita869fc79bca0f65e5d0d25b0ecd2e86abc127926 (patch)
treef1ae9cfb41f7a4294cd46db24c25b4f9d66a16db /gui/action.cpp
parentprogress: Initialize display percentage variable (diff)
downloadandroid_bootable_recovery-a869fc79bca0f65e5d0d25b0ecd2e86abc127926.tar
android_bootable_recovery-a869fc79bca0f65e5d0d25b0ecd2e86abc127926.tar.gz
android_bootable_recovery-a869fc79bca0f65e5d0d25b0ecd2e86abc127926.tar.bz2
android_bootable_recovery-a869fc79bca0f65e5d0d25b0ecd2e86abc127926.tar.lz
android_bootable_recovery-a869fc79bca0f65e5d0d25b0ecd2e86abc127926.tar.xz
android_bootable_recovery-a869fc79bca0f65e5d0d25b0ecd2e86abc127926.tar.zst
android_bootable_recovery-a869fc79bca0f65e5d0d25b0ecd2e86abc127926.zip
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index e08111850..aac2c313f 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -1026,7 +1026,14 @@ int GUIAction::flash(std::string arg)
reinject_after_flash();
PartitionManager.Update_System_Details();
+ if (DataManager::GetIntValue("tw_install_reboot") > 0 && ret_val == 0) {
+ gui_msg("install_reboot=Rebooting in 5 seconds");
+ usleep(5000000);
+ TWFunc::tw_reboot(rb_system);
+ usleep(5000000); // another sleep while we wait for the reboot to occur
+ }
operation_end(ret_val);
+ // This needs to be after the operation_end call so we change pages before we change variables that we display on the screen
DataManager::SetValue(TW_ZIP_QUEUE_COUNT, zip_queue_index);
return 0;
}