mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-25 12:56:27 -05:00
fix: Fixed some favorite entries disappearing when show folders is off
This commit is contained in:
parent
b98bd24d6a
commit
d34ec92720
1 changed files with 2 additions and 1 deletions
|
@ -501,6 +501,7 @@ void GameList::DonePopulating(const QStringList& watch_list) {
|
||||||
if (!watch_dirs.isEmpty()) {
|
if (!watch_dirs.isEmpty()) {
|
||||||
watcher->removePaths(watch_dirs);
|
watcher->removePaths(watch_dirs);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Workaround: Add the watch paths in chunks to allow the gui to refresh
|
// Workaround: Add the watch paths in chunks to allow the gui to refresh
|
||||||
// This prevents the UI from stalling when a large number of watch paths are added
|
// This prevents the UI from stalling when a large number of watch paths are added
|
||||||
// Also artificially caps the watcher to a certain number of directories
|
// Also artificially caps the watcher to a certain number of directories
|
||||||
|
@ -923,7 +924,7 @@ void GameList::AddFavorite(u64 program_id) {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
for (int i = 1; i < item_model->rowCount() - 1; i++) {
|
for (int i = 0; i < item_model->rowCount(); i++) {
|
||||||
const auto* game = item_model->item(i);
|
const auto* game = item_model->item(i);
|
||||||
if (game->data(GameListItemPath::ProgramIdRole).toULongLong() != program_id) {
|
if (game->data(GameListItemPath::ProgramIdRole).toULongLong() != program_id) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue