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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user