mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-13 13:30:00 -08:00
The local picture loader walked the whole custom picture tree every ten seconds on the GUI thread. Watch the root and every subdirectory with QFileSystemWatcher, debounce bursts of events into a single 500 ms refresh, and keep a five-minute fallback poll for filesystems where watching fails. Add an explicit-path constructor and indexedPaths() so the indexing can be tested without SettingsCache, and emit indexChanged() after a rebuild. Verification: cockatrice built. Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de> |
||
|---|---|---|
| .. | ||
| card_picture_loader.cpp | ||
| card_picture_loader.h | ||
| card_picture_loader_cache_method.h | ||
| card_picture_loader_local.cpp | ||
| card_picture_loader_local.h | ||
| card_picture_loader_local_schemes.h | ||
| card_picture_loader_request_status_display_widget.cpp | ||
| card_picture_loader_request_status_display_widget.h | ||
| card_picture_loader_status_bar.cpp | ||
| card_picture_loader_status_bar.h | ||
| card_picture_loader_worker.cpp | ||
| card_picture_loader_worker.h | ||
| card_picture_loader_worker_work.cpp | ||
| card_picture_loader_worker_work.h | ||
| card_picture_to_load.cpp | ||
| card_picture_to_load.h | ||