gui: Move download database actions from game list to Manage -> Database submenu (#18870)

Closes #18856

Moved the three download database actions from the game list context
menu to Manage -> Databases submenu, since they are not related to a
specific game entry.
This commit is contained in:
Vishrut Sachan 2026-06-13 11:29:18 +05:30 committed by GitHub
parent 16a53dfec7
commit 3fd8fd0e34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 39 additions and 31 deletions

View File

@ -628,19 +628,10 @@ void game_list_context_menu::show_single_selection_context_menu(const game_info&
{
check_integrity->setEnabled(false);
}
QAction* download_integrity = addAction(tr("&Download Integrity Database"));
connect(download_integrity, &QAction::triggered, m_game_list_frame, [this]
{
ensure(m_game_list_frame->GetIsoIntegrity())->download();
});
}
}
QAction* check_compat = addAction(tr("&Check Game Compatibility"));
QAction* download_compat = addAction(tr("&Download Compatibility Database"));
QAction* download_config_db = addAction(tr("&Download Config Database"));
addSeparator();
// Disk usage
@ -734,14 +725,6 @@ void game_list_context_menu::show_single_selection_context_menu(const game_info&
const QString link = "https://rpcs3.net/compatibility?g=" + serial;
QDesktopServices::openUrl(QUrl(link));
});
connect(download_compat, &QAction::triggered, m_game_list_frame, [this]
{
m_game_list_frame->GetGameCompatibility()->RequestCompatibility(true);
});
connect(download_config_db, &QAction::triggered, m_game_list_frame, [this]
{
m_game_list_frame->GetConfigDatabase()->request_config_database(true);
});
connect(rename_title, &QAction::triggered, m_game_list_frame, [this, name, serial = QString::fromStdString(serial), global_pos]
{
const QString custom_title = m_persistent_settings->GetValue(gui::persistent::titles, serial, "").toString();
@ -1001,20 +984,6 @@ void game_list_context_menu::show_multi_selection_context_menu(const std::vector
addSeparator();
QAction* download_compat = addAction(tr("&Download Compatibility Database"));
connect(download_compat, &QAction::triggered, m_game_list_frame, [this]
{
m_game_list_frame->GetGameCompatibility()->RequestCompatibility(true);
});
QAction* download_config_db = addAction(tr("&Download Config Database"));
connect(download_config_db, &QAction::triggered, m_game_list_frame, [this]
{
m_game_list_frame->GetConfigDatabase()->request_config_database(true);
});
addSeparator();
// Disk usage
QAction* disk_usage = addAction(tr("&Disk Usage"));
connect(disk_usage, &QAction::triggered, this, [this]()

View File

@ -3541,6 +3541,21 @@ void main_window::CreateConnects()
#endif
});
connect(ui->downloadIntegrityDbAct, &QAction::triggered, this, [this]()
{
ensure(m_game_list_frame->GetIsoIntegrity())->download();
});
connect(ui->downloadCompatDbAct, &QAction::triggered, this, [this]()
{
m_game_list_frame->GetGameCompatibility()->RequestCompatibility(true);
});
connect(ui->downloadConfigDbAct, &QAction::triggered, this, [this]()
{
m_game_list_frame->GetConfigDatabase()->request_config_database(true);
});
connect(ui->welcomeAct, &QAction::triggered, this, [this]()
{
welcome_dialog* welcome = new welcome_dialog(m_gui_settings, true, this);

View File

@ -315,6 +315,14 @@
<addaction name="actionManage_Dimensions_ToyPad"/>
<addaction name="actionManage_KamenRider_RideGate"/>
</widget>
<widget class="QMenu" name="menuDatabases">
<property name="title">
<string>Databases</string>
</property>
<addaction name="downloadIntegrityDbAct"/>
<addaction name="downloadCompatDbAct"/>
<addaction name="downloadConfigDbAct"/>
</widget>
<addaction name="confVFSDialogAct"/>
<addaction name="separator"/>
<addaction name="actionManage_Users"/>
@ -328,6 +336,7 @@
<addaction name="separator"/>
<addaction name="actionManage_Cheats"/>
<addaction name="actionManage_Game_Patches"/>
<addaction name="menuDatabases"/>
<addaction name="separator"/>
<addaction name="actionManage_Screenshots"/>
</widget>
@ -850,6 +859,21 @@
<string>Check for Updates</string>
</property>
</action>
<action name="downloadIntegrityDbAct">
<property name="text">
<string>Download Integrity Database</string>
</property>
</action>
<action name="downloadCompatDbAct">
<property name="text">
<string>Download Compatibility Database</string>
</property>
</action>
<action name="downloadConfigDbAct">
<property name="text">
<string>Download Config Database</string>
</property>
</action>
<action name="welcomeAct">
<property name="text">
<string>View Welcome Dialog</string>