mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
Fixed an issue where hidden metadata fields would sometimes be shown.
This commit is contained in:
parent
2aad71a3c3
commit
7832c4fbe0
|
@ -123,7 +123,6 @@ DetailedGameListView::DetailedGameListView(
|
|||
|
||||
initMDLabels();
|
||||
initMDValues();
|
||||
updateInfoPanel();
|
||||
}
|
||||
|
||||
void DetailedGameListView::onThemeChanged(const std::shared_ptr<ThemeData>& theme)
|
||||
|
@ -391,3 +390,9 @@ std::vector<GuiComponent*> DetailedGameListView::getMDValues()
|
|||
ret.push_back(&mPlayCount);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void DetailedGameListView::onShow()
|
||||
{
|
||||
GuiComponent::onShow();
|
||||
updateInfoPanel();
|
||||
}
|
||||
|
|
|
@ -19,10 +19,9 @@ class DetailedGameListView : public BasicGameListView
|
|||
public:
|
||||
DetailedGameListView(Window* window, FileData* root);
|
||||
|
||||
virtual void onShow() override;
|
||||
virtual void onThemeChanged(const std::shared_ptr<ThemeData>& theme) override;
|
||||
|
||||
virtual const char* getName() const override { return "detailed"; }
|
||||
|
||||
virtual void launch(FileData* game) override;
|
||||
|
||||
private:
|
||||
|
|
|
@ -249,6 +249,7 @@ void VideoGameListView::initMDValues()
|
|||
values[i]->setDefaultZIndex(40);
|
||||
|
||||
float testBot = values[i]->getPosition().y() + values[i]->getSize().y();
|
||||
|
||||
if (testBot > bottom)
|
||||
bottom = testBot;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue