mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Added the missing onFileChanged function to GridGameListView.
This commit is contained in:
parent
b12a68603d
commit
5ad03f3043
|
@ -155,6 +155,17 @@ GridGameListView::~GridGameListView()
|
|||
delete mVideo;
|
||||
}
|
||||
|
||||
void GridGameListView::onFileChanged(FileData* file, bool reloadGameList)
|
||||
{
|
||||
if (reloadGameList) {
|
||||
// Might switch to a detailed view.
|
||||
ViewController::get()->reloadGameListView(this);
|
||||
return;
|
||||
}
|
||||
|
||||
ISimpleGameListView::onFileChanged(file, reloadGameList);
|
||||
}
|
||||
|
||||
FileData* GridGameListView::getCursor()
|
||||
{
|
||||
return mGrid.getSelected();
|
||||
|
|
|
@ -22,6 +22,9 @@ public:
|
|||
GridGameListView(Window* window, FileData* root);
|
||||
virtual ~GridGameListView();
|
||||
|
||||
// Called when a FileData* is added, has its metadata changed, or is removed.
|
||||
virtual void onFileChanged(FileData* file, bool reloadGameList) override;
|
||||
|
||||
virtual void onShow() override;
|
||||
|
||||
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) override;
|
||||
|
|
Loading…
Reference in a new issue