summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-09-27 16:09:41 +0200
committerDees_Troy <dees_troy@teamw.in>2012-09-27 16:40:03 +0200
commitc9ff7a341b03b3013eca57c7554417b623ab6bb0 (patch)
treee8cca26407ec35a3f31823f3bd77c861c51de347 /gui/action.cpp
parentPort reboot functions to C++ (diff)
downloadandroid_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.gz
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.bz2
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.lz
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.xz
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.tar.zst
android_bootable_recovery-c9ff7a341b03b3013eca57c7554417b623ab6bb0.zip
Diffstat (limited to '')
-rw-r--r--gui/action.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 7d6686121..4c3d88ed3 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -36,7 +36,6 @@ extern "C" {
#include "../minadbd/adb.h"
int TWinstall_zip(const char* path, int* wipe_cache);
-int check_backup_name(int show_error);
void run_script(const char *str1, const char *str2, const char *str3, const char *str4, const char *str5, const char *str6, const char *str7, int request_confirm);
int gui_console_only();
int gui_start();
@@ -762,7 +761,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
if (arg == "backup") {
string Backup_Name;
DataManager::GetValue(TW_BACKUP_NAME, Backup_Name);
- if (Backup_Name == "(Current Date)" || Backup_Name == "0" || Backup_Name == "(" || check_backup_name(1) == 0)
+ if (Backup_Name == "(Current Date)" || Backup_Name == "0" || Backup_Name == "(" || PartitionManager.Check_Backup_Name(true) == 0)
ret = PartitionManager.Run_Backup();
else {
operation_end(1, simulate);
@@ -1020,7 +1019,7 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
if (simulate) {
simulate_progress_bar();
} else {
- op_status = check_backup_name(1);
+ op_status = PartitionManager.Check_Backup_Name(true);
if (op_status != 0)
op_status = 1;
}