Merge branch 'master' into cellPadSet

This commit is contained in:
Megamouse 2025-12-03 08:51:40 +01:00 committed by GitHub
commit 2db4ae18fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 12 deletions

View file

@ -117,7 +117,8 @@ void game_list::fix_narrow_columns()
void game_list::mousePressEvent(QMouseEvent* event)
{
if (QTableWidgetItem* item = itemAt(event->pos()); !item || !item->data(Qt::UserRole).isValid())
// Handle deselction when clicking on empty space in the table
if (!itemAt(event->pos()))
{
clearSelection();
setCurrentItem(nullptr); // Needed for currentItemChanged

View file

@ -243,21 +243,19 @@ bool main_window::Init([[maybe_unused]] bool with_cli_boot)
ui->menuBar->setCornerWidget(corner_bar);
ui->menuBar->cornerWidget()->setVisible(false);
ui->menuBar->removeAction(ui->menuUpdate_Available->menuAction());
#endif
ui->menuUpdate_Available->setVisible(false);
connect(&m_updater, &update_manager::signal_update_available, this, [this](bool update_available)
{
if (ui->menuUpdate_Available)
{
ui->menuUpdate_Available->setVisible(update_available);
}
if (ui->menuBar && ui->menuBar->cornerWidget())
{
ui->menuBar->cornerWidget()->setVisible(update_available);
}
});
#else
ui->menuUpdate_Available->menuAction()->setVisible(false);
connect(&m_updater, &update_manager::signal_update_available, this, [this](bool update_available)
{
ui->menuUpdate_Available->menuAction()->setVisible(update_available);
});
#endif
#ifdef RPCS3_UPDATE_SUPPORTED
if (const auto update_value = m_gui_settings->GetValue(gui::m_check_upd_start).toString(); update_value != gui::update_off)