mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +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;
|
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()
|
FileData* GridGameListView::getCursor()
|
||||||
{
|
{
|
||||||
return mGrid.getSelected();
|
return mGrid.getSelected();
|
||||||
|
|
|
@ -22,6 +22,9 @@ public:
|
||||||
GridGameListView(Window* window, FileData* root);
|
GridGameListView(Window* window, FileData* root);
|
||||||
virtual ~GridGameListView();
|
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 onShow() override;
|
||||||
|
|
||||||
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) override;
|
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) override;
|
||||||
|
|
Loading…
Reference in a new issue