Skip to content

Commit

Permalink
UI|Home: Tweaked game library item subtitles
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Nov 5, 2018
1 parent 3211920 commit bba7fae
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions doomsday/apps/client/src/ui/home/gamepanelbuttonwidget.cpp
Expand Up @@ -277,8 +277,15 @@ DENG_GUI_PIMPL(GamePanelButtonWidget)

String defaultSubtitle() const
{
return gameProfile.isUserCreated() ? game().title()
: String::number(game().releaseDate().year());
if (gameProfile.isUserCreated())
{
return game().title();
}
if (Config::get("home.sortBy") != GameColumnWidget::SORT_RECENTLY_PLAYED)
{
return String::number(game().releaseDate().year());
}
return {};
}
};

Expand Down Expand Up @@ -333,7 +340,6 @@ void GamePanelButtonWidget::updateContent()
{
meta = d->game().id();
}

if (meta.isEmpty())
{
meta = d->defaultSubtitle();
Expand Down

0 comments on commit bba7fae

Please sign in to comment.