Add back to submenu in b_manage

This commit is contained in:
2024-03-01 11:20:49 +01:00
parent ec323d86ab
commit d2832ed2b3

View File

@@ -154,9 +154,11 @@ namespace platform {
{"excel", 'e', true},
{"title", 't', true}
};
// tuple<Option, digit, requires value>
std::vector<std::tuple<std::string, char, bool>> listOptions = {
{"report", 'r', true},
{"list", 'l', false},
{"back", 'b', false},
{"quit", 'q', false}
};
auto parser = CommandParser();
@@ -170,6 +172,11 @@ namespace platform {
case 'q':
finished = true;
break;
case 'b':
// back to show the report
report(index, false);
indexList = false;
break;
case 'l':
list();
indexList = true;