summaryrefslogtreecommitdiffstats
path: root/partition.cpp
diff options
context:
space:
mode:
authorDees_Troy <dees_troy@teamw.in>2012-12-12 20:18:30 +0100
committerDees_Troy <dees_troy@teamw.in>2012-12-12 20:18:30 +0100
commitda8b55aff33bff641d7c1bb9c8cb9247484aa594 (patch)
treefce33dc6baf427a5ae5ddfd6bad940889e899a9e /partition.cpp
parentMerge "restore based on backup type, not destination type" into jb-wip (diff)
downloadandroid_bootable_recovery-da8b55aff33bff641d7c1bb9c8cb9247484aa594.tar
android_bootable_recovery-da8b55aff33bff641d7c1bb9c8cb9247484aa594.tar.gz
android_bootable_recovery-da8b55aff33bff641d7c1bb9c8cb9247484aa594.tar.bz2
android_bootable_recovery-da8b55aff33bff641d7c1bb9c8cb9247484aa594.tar.lz
android_bootable_recovery-da8b55aff33bff641d7c1bb9c8cb9247484aa594.tar.xz
android_bootable_recovery-da8b55aff33bff641d7c1bb9c8cb9247484aa594.tar.zst
android_bootable_recovery-da8b55aff33bff641d7c1bb9c8cb9247484aa594.zip
Diffstat (limited to 'partition.cpp')
-rw-r--r--partition.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/partition.cpp b/partition.cpp
index dafec5f3a..dd8d3b3aa 100644
--- a/partition.cpp
+++ b/partition.cpp
@@ -1245,6 +1245,7 @@ bool TWPartition::Restore_Tar(string restore_folder, string Restore_File_System)
if (!Mount(true))
return false;
+ TWFunc::GUI_Operation_Text(TW_RESTORE_TEXT, Display_Name, "Restoring");
ui_print("Restoring %s...\n", Display_Name.c_str());
Full_FileName = restore_folder + "/" + Backup_FileName;
if (!TWFunc::Path_Exists(Full_FileName)) {
@@ -1276,6 +1277,7 @@ bool TWPartition::Restore_Tar(string restore_folder, string Restore_File_System)
bool TWPartition::Restore_DD(string restore_folder) {
string Full_FileName, Command;
+ TWFunc::GUI_Operation_Text(TW_RESTORE_TEXT, Display_Name, "Restoring");
ui_print("Restoring %s...\n", Display_Name.c_str());
Full_FileName = restore_folder + "/" + Backup_FileName;
Command = "dd bs=4096 if='" + Full_FileName + "' of=" + Actual_Block_Device;