summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-09-13 21:41:53 +0200
committerJames Christopher Adduono <jc@adduono.com>2016-10-14 03:38:49 +0200
commitc0d40deaae5f1f756ce584ed7bdd346680cdc74c (patch)
treebcec4640426421b3de86bc67717ba0176aef68ec /gui
parentFix compressed backups with split archives (diff)
downloadandroid_bootable_recovery-c0d40deaae5f1f756ce584ed7bdd346680cdc74c.tar
android_bootable_recovery-c0d40deaae5f1f756ce584ed7bdd346680cdc74c.tar.gz
android_bootable_recovery-c0d40deaae5f1f756ce584ed7bdd346680cdc74c.tar.bz2
android_bootable_recovery-c0d40deaae5f1f756ce584ed7bdd346680cdc74c.tar.lz
android_bootable_recovery-c0d40deaae5f1f756ce584ed7bdd346680cdc74c.tar.xz
android_bootable_recovery-c0d40deaae5f1f756ce584ed7bdd346680cdc74c.tar.zst
android_bootable_recovery-c0d40deaae5f1f756ce584ed7bdd346680cdc74c.zip
Diffstat (limited to 'gui')
-rw-r--r--gui/action.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 328fc2c52..3fde199d3 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -1739,9 +1739,11 @@ int GUIAction::flashimage(std::string arg __unused)
PartitionSettings part_settings;
operation_start("Flash Image");
- DataManager::GetValue("tw_zip_location", part_settings.Restore_Name);
- DataManager::GetValue("tw_file", part_settings.Backup_FileName);
- unsigned long long total_bytes = TWFunc::Get_File_Size(part_settings.Restore_Name + "/" + part_settings.Backup_FileName);
+ string path, filename;
+ DataManager::GetValue("tw_zip_location", path);
+ DataManager::GetValue("tw_file", filename);
+ part_settings.Backup_Folder = path + "/" + filename;
+ unsigned long long total_bytes = TWFunc::Get_File_Size(part_settings.Backup_Folder);
ProgressTracking progress(total_bytes);
part_settings.progress = &progress;
part_settings.adbbackup = false;