Improved #807 fix

This commit is contained in:
Thomas Jentzsch 2021-08-25 17:59:26 +02:00
parent d761df9c49
commit 5c775ab807
1 changed files with 2 additions and 2 deletions

View File

@ -422,9 +422,9 @@ void LauncherDialog::updateUI()
myDir->setText(myList->currentDir().getShortPath());
// Indicate how many files were found
bool hasParent = *myList->getList().begin() == " [..]";
ostringstream buf;
buf << (myList->getList().size() - (hasParent ? 1 : 0)) << (myShortCount ? " found" : " items found");
buf << (myList->getList().size() - (currentDir().hasParent() ? 1 : 0))
<< (myShortCount ? " found" : " items found");
myRomCount->setLabel(buf.str());
// Update ROM info UI item