Metadata fields are now hidden for placeholders.

This commit is contained in:
Leon Styhre 2020-10-28 17:38:54 +01:00
parent 0955b1cf1b
commit 0e59654399
2 changed files with 12 additions and 0 deletions

View file

@ -257,6 +257,12 @@ void DetailedGameListView::updateInfoPanel()
hideMetaDataFields = true;
else
hideMetaDataFields = (file->metadata.get("hidemetadata") == "true");
// Always hide the metadata fields for placeholders as well.
if (file->getType() == PLACEHOLDER) {
hideMetaDataFields = true;
mLastUpdated = nullptr;
}
}
// If we're scrolling, hide the metadata fields if the last game had this options set,

View file

@ -282,6 +282,12 @@ void VideoGameListView::updateInfoPanel()
hideMetaDataFields = true;
else
hideMetaDataFields = (file->metadata.get("hidemetadata") == "true");
// Always hide the metadata fields for placeholders as well.
if (file->getType() == PLACEHOLDER) {
hideMetaDataFields = true;
mLastUpdated = nullptr;
}
}
// If we're scrolling, hide the metadata fields if the last game had this options set,