GUI: Reload the grid when entry list is updated

This commit is contained in:
av-dx 2021-07-06 17:47:23 +05:30 committed by Eugene Sandulenko
parent 3b4be43a97
commit f5ff9f748c
2 changed files with 4 additions and 1 deletions

View File

@ -530,7 +530,7 @@ void LauncherDialog::removeGame(int item) {
// Write config to disk
ConfMan.flushToDisk();
// Update the ListWidget and force a redraw
// Update the ListWidget/GridWidget and force a redraw
updateListing();
g_gui.scheduleTopDialogRedraw();
}

View File

@ -382,6 +382,9 @@ void GridWidget::setEntryList(Common::Array<GridItemInfo> *list) {
for (auto entryIter = list->begin(); entryIter != list->end(); ++entryIter) {
_allEntries.push_back(*entryIter);
}
if (!_gridItems.empty()) {
reflowLayout();
}
}
bool GridWidget::calcVisibleEntries() {