Fix (Auto Generate) handling for backup names

Change-Id: I29f3823d03c005fb55a0e0a98818d40bd1eb039d
This commit is contained in:
Ethan Yonker
2016-01-22 16:07:11 -06:00
parent 6193e73a16
commit 4adc33ebff
3 changed files with 9 additions and 8 deletions
+2 -3
View File
@@ -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 {