diff options
Diffstat (limited to '')
-rw-r--r-- | partition.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/partition.cpp b/partition.cpp index c511298ec..df03336c4 100644 --- a/partition.cpp +++ b/partition.cpp @@ -1224,10 +1224,10 @@ bool TWPartition::Wipe(string New_File_System) { if (Has_Data_Media && recreate_media) { Recreate_Media_Folder(); } + if (Is_Storage && Mount(false)) + PartitionManager.Add_MTP_Storage(MTP_Storage_ID); } - if (Is_Storage) { - PartitionManager.Add_MTP_Storage(MTP_Storage_ID); - } + return wiped; } |