mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-07-09 17:24:49 -06:00
Refresh game list after uninstalling installed titles (#2237)
Signed-off-by: Andrey Kurlin <superkurlin2013@yandex.ru>
This commit is contained in:
parent
d93adebb16
commit
307f558d28
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user