summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorMatt Mower <mowerm@gmail.com>2015-02-26 06:50:55 +0100
committerDees Troy <dees_troy@teamw.in>2015-03-05 04:20:53 +0100
commit5aa29ab3c79be328574a34bd3aef33fc382609f9 (patch)
tree1816aff61173d53aaa87c313cd8be05b29a6db11 /gui/action.cpp
parentGUI: Use valid XML syntax (diff)
downloadandroid_bootable_recovery-5aa29ab3c79be328574a34bd3aef33fc382609f9.tar
android_bootable_recovery-5aa29ab3c79be328574a34bd3aef33fc382609f9.tar.gz
android_bootable_recovery-5aa29ab3c79be328574a34bd3aef33fc382609f9.tar.bz2
android_bootable_recovery-5aa29ab3c79be328574a34bd3aef33fc382609f9.tar.lz
android_bootable_recovery-5aa29ab3c79be328574a34bd3aef33fc382609f9.tar.xz
android_bootable_recovery-5aa29ab3c79be328574a34bd3aef33fc382609f9.tar.zst
android_bootable_recovery-5aa29ab3c79be328574a34bd3aef33fc382609f9.zip
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index f9de4e9d8..16a550ba1 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -1321,6 +1321,10 @@ int GUIAction::terminalcommand(std::string arg)
if (simulate) {
simulate_progress_bar();
operation_end(op_status);
+ } else if (arg == "exit") {
+ LOGINFO("Exiting terminal\n");
+ operation_end(op_status);
+ page("main");
} else {
command = "cd \"" + cmdpath + "\" && " + arg + " 2>&1";;
LOGINFO("Actual command is: '%s'\n", command.c_str());