From 01f4e035aa0833252b99dcbda0e08a327ba8bf3d Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Fri, 3 Feb 2017 15:30:52 -0600 Subject: Improve backup display names with emulated storage -Change backup display name to say that we are excluding storage -Add warning message during backup of any partition with data media -Also eliminate unused variable from twrpTar class Maybe this will make the people in issue 276 happy, but probably not because they already lost their data, or because the warning text is yellow instead of red. https://github.com/TeamWin/Team-Win-Recovery-Project/issues/276 Change-Id: I98303fe7f6b7a25fea029637c90145258d41ee46 --- partition.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'partition.cpp') diff --git a/partition.cpp b/partition.cpp index 464438811..5cf017987 100644 --- a/partition.cpp +++ b/partition.cpp @@ -2210,7 +2210,8 @@ bool TWPartition::Backup_Tar(PartitionSettings *part_settings, pid_t *tar_fork_p Backup_FileName = Backup_Name + "." + Current_File_System + ".win"; Full_FileName = part_settings->Backup_Folder + "/" + Backup_FileName; - tar.has_data_media = Has_Data_Media; + if (Has_Data_Media) + gui_msg(Msg(msg::kWarning, "backup_storage_warning=Backups of {1} do not include any files in internal storage such as pictures or downloads.")(Display_Name)); tar.part_settings = part_settings; tar.backup_exclusions = &backup_exclusions; tar.setdir(Backup_Path); -- cgit v1.2.3