https://bugs.kde.org/show_bug.cgi?id=526858

Méven <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/grap |https://invent.kde.org/grap
                   |hics/gwenview/-/commit/3c1c |hics/gwenview/-/commit/1aa0
                   |0bd32775b5da703c0d8e08d8b5b |4ad945f837a8f12092b4a6332a3
                   |ca7db8afe                   |4b2752d49

--- Comment #4 from Méven <[email protected]> ---
Git commit 1aa04ad945f837a8f12092b4a6332a34b2752d49 by Méven Car.
Committed on 19/10/2026 at 08:44.
Pushed by meven into branch 'release/26.08'.

historymodel: check the recent folders for existence in a thread

When Gwenview opened an image, it loaded the recent folders, and for each of
them it looked up the mount, stat'ed the folder, and stat'ed it again for its
mime type. This ran on the main thread before the image was painted. On a slow
FUSE mount each stat took about 2 s, so a local image appeared after 8 s.

The recent folders are now shown as they are stored. A history entry is a
folder, so a local one gets the folder icon without a stat. One background task
then removes the entries whose folder no longer exists. Entries on slow mounts
are kept, as before, because their stat can fail while the server does not
answer. An entry visited while the task runs is kept.


(cherry picked from commit 3c1c0bd32775b5da703c0d8e08d8b5bca7db8afe)

Co-authored-by: Méven Car <[email protected]>

M  +65   -12   lib/historymodel.cpp
M  +25   -0    tests/auto/historymodeltest.cpp
M  +1    -0    tests/auto/historymodeltest.h

https://invent.kde.org/graphics/gwenview/-/commit/1aa04ad945f837a8f12092b4a6332a34b2752d49

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to