Fix mistake when no results in manage

This commit is contained in:
2023-10-24 19:44:23 +02:00
parent 84cec0c1e0
commit a8f9800631
3 changed files with 11 additions and 6 deletions

View File

@@ -22,6 +22,10 @@ namespace platform {
}
void ManageResults::doMenu()
{
if (results.empty()) {
cout << Colors::MAGENTA() << "No results found!" << Colors::RESET() << endl;
return;
}
results.sortDate();
list();
menu();
@@ -32,10 +36,6 @@ namespace platform {
}
void ManageResults::list()
{
if (results.empty()) {
cout << Colors::MAGENTA() << "No results found!" << Colors::RESET() << endl;
exit(0);
}
auto temp = ConfigLocale();
string suffix = numFiles != results.size() ? " of " + to_string(results.size()) : "";
stringstream oss;