Skip to content

Commit

Permalink
Qt: Allow users to create shortcuts for existing bootable entries eve…
Browse files Browse the repository at this point in the history
…n after canceling the installation
  • Loading branch information
Megamouse committed Jan 11, 2023
1 parent f20e5eb commit a291869
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions rpcs3/rpcs3qt/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1035,22 +1035,22 @@ void main_window::HandlePackageInstallation(QStringList file_paths)

m_game_list_frame->Refresh(true);

pdlg.hide();
std::map<std::string, QString> bootable_paths_installed; // -> title id

if (!cancelled)
for (usz index = 0; index < bootable_paths.size(); index++)
{
std::map<std::string, QString> bootable_paths_installed; // -> title id

for (usz index = 0; index < bootable_paths.size(); index++)
if (bootable_paths[index].empty())
{
if (bootable_paths[index].empty())
{
continue;
}

bootable_paths_installed[bootable_paths[index]] = packages[index].title_id;
continue;
}

bootable_paths_installed[bootable_paths[index]] = packages[index].title_id;
}

pdlg.hide();

if (!cancelled || !bootable_paths_installed.empty())
{
if (bootable_paths_installed.empty())
{
m_gui_settings->ShowInfoBox(tr("Success!"), tr("Successfully installed software from package(s)!"), gui::ib_pkg_success, this);
Expand Down

0 comments on commit a291869

Please sign in to comment.