Merge "Unmount sdcard if no package file is selected."
This commit is contained in:
@@ -767,6 +767,7 @@ static int apply_from_sdcard(Device* device, bool* wipe_cache) {
|
|||||||
char* path = browse_directory(SDCARD_ROOT, device);
|
char* path = browse_directory(SDCARD_ROOT, device);
|
||||||
if (path == NULL) {
|
if (path == NULL) {
|
||||||
ui->Print("\n-- No package file selected.\n");
|
ui->Print("\n-- No package file selected.\n");
|
||||||
|
ensure_path_unmounted(SDCARD_ROOT);
|
||||||
return INSTALL_ERROR;
|
return INSTALL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user