mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
Qt: streamline game removal in game list and fix followed item selection
This commit is contained in:
parent
9a1c0e4577
commit
e43afa7148
1 changed files with 8 additions and 1 deletions
|
@ -597,7 +597,14 @@ void game_list_frame::ShowContextMenu(const QPoint &pos)
|
||||||
}
|
}
|
||||||
fs::remove_all(currGame.path);
|
fs::remove_all(currGame.path);
|
||||||
m_game_data.erase(m_game_data.begin() + index);
|
m_game_data.erase(m_game_data.begin() + index);
|
||||||
Refresh();
|
if (m_isListLayout)
|
||||||
|
{
|
||||||
|
m_gameList->removeRow(m_gameList->currentItem()->row());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Refresh();
|
||||||
|
}
|
||||||
LOG_SUCCESS(GENERAL, "Removed %s %s in %s", currGame.category, currGame.name, currGame.path);
|
LOG_SUCCESS(GENERAL, "Removed %s %s in %s", currGame.category, currGame.name, currGame.path);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue