mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-13 15:40:57 +00:00
GUI: Reload the grid when entry list is updated
This commit is contained in:
parent
3b4be43a97
commit
f5ff9f748c
@ -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();
|
||||
}
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user