From fbf349d61adfe5acbb760b981438f56840294da3 Mon Sep 17 00:00:00 2001 From: jrassa Date: Mon, 3 Apr 2017 22:24:52 -0400 Subject: [PATCH] fix image ratio for first image in video game list view --- es-app/src/views/gamelist/VideoGameListView.cpp | 7 ++++++- es-app/src/views/gamelist/VideoGameListView.h | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/es-app/src/views/gamelist/VideoGameListView.cpp b/es-app/src/views/gamelist/VideoGameListView.cpp index 2a270be02..a12e3fddf 100644 --- a/es-app/src/views/gamelist/VideoGameListView.cpp +++ b/es-app/src/views/gamelist/VideoGameListView.cpp @@ -94,7 +94,6 @@ VideoGameListView::VideoGameListView(Window* window, FileData* root) : initMDLabels(); initMDValues(); - updateInfoPanel(); } VideoGameListView::~VideoGameListView() @@ -343,3 +342,9 @@ void VideoGameListView::update(int deltaTime) BasicGameListView::update(deltaTime); mVideo.update(deltaTime); } + +void VideoGameListView::onShow() +{ + GuiComponent::onShow(); + updateInfoPanel(); +} diff --git a/es-app/src/views/gamelist/VideoGameListView.h b/es-app/src/views/gamelist/VideoGameListView.h index b0673d396..0857f6ce2 100644 --- a/es-app/src/views/gamelist/VideoGameListView.h +++ b/es-app/src/views/gamelist/VideoGameListView.h @@ -12,6 +12,8 @@ public: VideoGameListView(Window* window, FileData* root); virtual ~VideoGameListView(); + virtual void onShow() override; + virtual void onThemeChanged(const std::shared_ptr& theme) override; virtual const char* getName() const override { return "video"; }