summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-01-22 23:07:11 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-01-22 23:08:07 +0100
commit4adc33ebff988504175b09165ba34f644fc795ee (patch)
tree7e2ae4a2c66db42ced5d5ea282f1f98bcb82f156 /gui/action.cpp
parentgui: language EN fixes (diff)
downloadandroid_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.gz
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.bz2
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.lz
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.xz
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.tar.zst
android_bootable_recovery-4adc33ebff988504175b09165ba34f644fc795ee.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 803d31355..711f64506 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -1169,9 +1169,8 @@ int GUIAction::nandroid(std::string arg)
if (arg == "backup") {
string Backup_Name;
DataManager::GetValue(TW_BACKUP_NAME, Backup_Name);
- string auto_gen = gui_lookup("auto_gen", "(Auto Generate)");
- string curr_date = gui_lookup("curr_date", "(Current Date)");
- if (Backup_Name == "(Auto Generate)" || Backup_Name == "(Current Date)" || Backup_Name == "0" || Backup_Name == "(" || PartitionManager.Check_Backup_Name(true) == 0) {
+ string auto_gen = gui_lookup("auto_generate", "(Auto Generate)");
+ if (Backup_Name == auto_gen || Backup_Name == gui_lookup("curr_date", "(Current Date)") || Backup_Name == "0" || Backup_Name == "(" || PartitionManager.Check_Backup_Name(true) == 0) {
ret = PartitionManager.Run_Backup();
}
else {