mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-26 04:32:35 +01:00
Refresh game list after installing RAP files via menus
This commit is contained in:
parent
4fcc1c0f31
commit
b30ac48513
@ -625,6 +625,8 @@ void main_window::InstallPackages(QStringList file_paths)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Install rap files if available
|
// Install rap files if available
|
||||||
|
int installed_rap_count = 0;
|
||||||
|
|
||||||
for (const auto& rap : file_paths.filter(QRegExp(".*\\.rap", Qt::CaseInsensitive)))
|
for (const auto& rap : file_paths.filter(QRegExp(".*\\.rap", Qt::CaseInsensitive)))
|
||||||
{
|
{
|
||||||
const QFileInfo file_info(rap);
|
const QFileInfo file_info(rap);
|
||||||
@ -633,6 +635,7 @@ void main_window::InstallPackages(QStringList file_paths)
|
|||||||
if (InstallRapFile(rap, rapname))
|
if (InstallRapFile(rap, rapname))
|
||||||
{
|
{
|
||||||
gui_log.success("Successfully copied rap file: %s", rapname);
|
gui_log.success("Successfully copied rap file: %s", rapname);
|
||||||
|
installed_rap_count++;
|
||||||
}
|
}
|
||||||
else
|
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
|
// Find remaining package files
|
||||||
file_paths = file_paths.filter(QRegExp(".*\\.pkg", Qt::CaseInsensitive));
|
file_paths = file_paths.filter(QRegExp(".*\\.pkg", Qt::CaseInsensitive));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user