allow filename selection to be aborted
This commit is contained in:
parent
7b7b37b3cf
commit
6038beb4b5
1 changed files with 2 additions and 2 deletions
|
@ -153,10 +153,10 @@ std::optional<std::pair<std::vector<disk_backend *>, std::vector<disk_backend *>
|
||||||
|
|
||||||
c->flush_input();
|
c->flush_input();
|
||||||
|
|
||||||
std::string selected_file = c->read_line("Enter filename: ");
|
std::string selected_file = c->read_line("Enter filename (or empty to abort): ");
|
||||||
|
|
||||||
if (selected_file.empty())
|
if (selected_file.empty())
|
||||||
continue;
|
return { };
|
||||||
|
|
||||||
auto disk_type = select_disk_type(c);
|
auto disk_type = select_disk_type(c);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue