From b30ac48513b594b5d1eb560723ad91909f1b097e Mon Sep 17 00:00:00 2001 From: NicknineTheEagle Date: Sun, 18 Jul 2021 22:51:08 +0300 Subject: [PATCH] Refresh game list after installing RAP files via menus --- rpcs3/rpcs3qt/main_window.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/rpcs3/rpcs3qt/main_window.cpp b/rpcs3/rpcs3qt/main_window.cpp index 44eed55d4e..368510ff84 100644 --- a/rpcs3/rpcs3qt/main_window.cpp +++ b/rpcs3/rpcs3qt/main_window.cpp @@ -625,6 +625,8 @@ void main_window::InstallPackages(QStringList file_paths) } // Install rap files if available + int installed_rap_count = 0; + for (const auto& rap : file_paths.filter(QRegExp(".*\\.rap", Qt::CaseInsensitive))) { const QFileInfo file_info(rap); @@ -633,6 +635,7 @@ void main_window::InstallPackages(QStringList file_paths) if (InstallRapFile(rap, rapname)) { gui_log.success("Successfully copied rap file: %s", rapname); + installed_rap_count++; } else { @@ -640,6 +643,12 @@ void main_window::InstallPackages(QStringList file_paths) } } + if (installed_rap_count > 0) + { + // Refresh game list since we probably unlocked some games now. + m_game_list_frame->Refresh(true); + } + // Find remaining package files file_paths = file_paths.filter(QRegExp(".*\\.pkg", Qt::CaseInsensitive));