From 307f558d284ab91879aa562adf16cf308ef02406 Mon Sep 17 00:00:00 2001 From: Andrey Kurlin <41126081+andrey545454@users.noreply.github.com> Date: Wed, 1 Jul 2026 23:20:56 +0500 Subject: [PATCH] Refresh game list after uninstalling installed titles (#2237) Signed-off-by: Andrey Kurlin --- src/citra_qt/citra_qt.cpp | 1 + src/citra_qt/citra_qt.h | 1 + src/citra_qt/game_list.cpp | 2 ++ 3 files changed, 4 insertions(+) diff --git a/src/citra_qt/citra_qt.cpp b/src/citra_qt/citra_qt.cpp index e2f5997ae..cd3c54765 100644 --- a/src/citra_qt/citra_qt.cpp +++ b/src/citra_qt/citra_qt.cpp @@ -2564,6 +2564,7 @@ void GMainWindow::UninstallTitles( } else if (!future_watcher.isCanceled()) { QMessageBox::information(this, tr("Azahar"), tr("Successfully uninstalled '%1'.").arg(first_name)); + emit InstalledTitlesChanged(); } } diff --git a/src/citra_qt/citra_qt.h b/src/citra_qt/citra_qt.h index df580ad0f..5e9cae6c6 100644 --- a/src/citra_qt/citra_qt.h +++ b/src/citra_qt/citra_qt.h @@ -151,6 +151,7 @@ signals: void InfoLEDColorChanged(); // Signal that tells widgets to update icons to use the current theme void UpdateThemedIcons(); + void InstalledTitlesChanged(); private: void InitializeWidgets(); diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index f34753ca7..18238893b 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp @@ -379,6 +379,8 @@ GameList::GameList(PlayTime::PlayTimeManager& play_time_manager_, GMainWindow* p item_model->setSortRole(GameListItemPath::SortRole); connect(main_window, &GMainWindow::UpdateThemedIcons, this, &GameList::OnUpdateThemedIcons); + connect(main_window, &GMainWindow::InstalledTitlesChanged, this, + &GameList::RefreshGameDirectory); connect(tree_view, &QTreeView::activated, this, &GameList::ValidateEntry); connect(tree_view, &QTreeView::customContextMenuRequested, this, &GameList::PopupContextMenu); connect(tree_view, &QTreeView::expanded, this, &GameList::OnItemExpanded);