Refresh game list after uninstalling installed titles (#2237)

Signed-off-by: Andrey Kurlin <superkurlin2013@yandex.ru>
This commit is contained in:
Andrey Kurlin 2026-07-01 23:20:56 +05:00 committed by GitHub
parent d93adebb16
commit 307f558d28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 0 deletions

View File

@ -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();
}
}

View File

@ -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();

View File

@ -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);