Qt: Reduce game list jank after shutting down VM

Prevents progress bar briefly appearing, and the list scrolling to the
top when you exit a game.
This commit is contained in:
Stenzek
2024-08-03 00:50:02 +10:00
parent 3a83c4265c
commit 9a626caad9
8 changed files with 98 additions and 27 deletions

View File

@@ -56,6 +56,9 @@ public:
ALWAYS_INLINE const QString& getColumnDisplayName(int column) { return m_column_display_names[column]; }
bool hasTakenGameList() const;
void takeGameList();
void refresh();
void reloadThemeSpecificImages();
@@ -98,6 +101,8 @@ private:
};
#pragma pack(pop)
QVariant data(const QModelIndex& index, int role, const GameList::Entry* ge) const;
void loadCommonImages();
void loadThemeSpecificImages();
void setColumnDisplayNames();
@@ -109,6 +114,8 @@ private:
static QString formatTimespan(time_t timespan);
std::optional<GameList::EntryList> m_taken_entries;
float m_cover_scale = 0.0f;
bool m_show_titles_for_covers = false;
bool m_show_game_icons = false;