From ee909717629a4d8aebed2367e4f6fd30483ca638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 25 Feb 2025 09:40:18 -0600 Subject: [PATCH] Fix layout issue on savedata screen Fixes #20030 --- UI/GameInfoCache.cpp | 2 -- UI/SavedataScreen.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/UI/GameInfoCache.cpp b/UI/GameInfoCache.cpp index a1fdbbeb7a54..a786f0783c17 100644 --- a/UI/GameInfoCache.cpp +++ b/UI/GameInfoCache.cpp @@ -677,8 +677,6 @@ class GameInfoWorkItem : public Task { Path screenshotPath = gamePath_.WithReplacedExtension(".ppst", ".jpg"); if (ReadLocalFileToString(screenshotPath, &info_->icon.data, &info_->lock)) { info_->icon.dataLoaded = true; - } else { - ERROR_LOG(Log::G3D, "Error loading screenshot data: '%s'", screenshotPath.c_str()); } } break; diff --git a/UI/SavedataScreen.cpp b/UI/SavedataScreen.cpp index ef673ee0175d..fd8c1acd53d4 100644 --- a/UI/SavedataScreen.cpp +++ b/UI/SavedataScreen.cpp @@ -632,7 +632,7 @@ void SavedataScreen::CreateSavestateTab(UI::ViewGroup *savestate) { using namespace UI; Path savestate_dir = GetSysDirectory(DIRECTORY_SAVESTATE); - ChoiceStrip *sortStrip = new ChoiceStrip(ORIENT_HORIZONTAL); + ChoiceStrip *sortStrip = new ChoiceStrip(ORIENT_HORIZONTAL, new LinearLayoutParams(0.0f, UI::Gravity::G_CENTER)); sortStrip->AddChoice(sa->T("Filename")); sortStrip->AddChoice(sa->T("Size")); sortStrip->AddChoice(sa->T("Date"));