[PictureLoader] Periodically refresh the local images index (#5997)

This commit is contained in:
RickyRister 2025-06-22 15:25:04 -07:00 committed by GitHub
parent b69091a51a
commit c1f12f52ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 5 deletions

View file

@ -5,6 +5,7 @@
#include <QLoggingCategory>
#include <QObject>
#include <QTimer>
inline Q_LOGGING_CATEGORY(PictureLoaderLocalLog, "picture_loader.local");
@ -26,8 +27,9 @@ private:
bool overrideAllCardArtWithPersonalPreference;
QMultiHash<QString, QString> customFolderIndex; // multimap of cardName to picPaths
QTimer *refreshTimer;
void createIndex();
void refreshIndex();
QImage
tryLoadCardImageFromDisk(const QString &setName, const QString &correctedCardName, bool searchCustomPics) const;