From dc27047ed44b5d61c8c9eee58ec4b839e6f3ced9 Mon Sep 17 00:00:00 2001 From: Megamouse Date: Wed, 3 Dec 2025 20:39:22 +0100 Subject: [PATCH] Qt: fix game list refresh order when changing the language --- rpcs3/rpcs3qt/main_window.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index e2c2aea78b..5509a6f69c 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -2340,6 +2340,12 @@ void main_window::RetranslateUI(const QStringList& language_codes, const QString ui->retranslateUi(this); + // Refresh game list first to prevent localization mismatches in further Refresh calls + if (m_game_list_frame) + { + m_game_list_frame->Refresh(true); + } + // Update menu bar size (needed if the corner widget changes its size) ui->menuBar->adjustSize(); @@ -2354,11 +2360,6 @@ void main_window::RetranslateUI(const QStringList& language_codes, const QString default: break; } - if (m_game_list_frame) - { - m_game_list_frame->Refresh(true); - } - Q_EMIT RequestDialogRepaint(); }