Diffusion KIO 933887dc334f

[KFilePlacesView] Use asynchronous KIO::FileSystemFreeSpaceJob

Authored by broulik on Aug 28 2019, 2:23 PM.

Description

[KFilePlacesView] Use asynchronous KIO::FileSystemFreeSpaceJob

This ensure hovering a broken mount will not freeze the UI.
I already optimized it in D11088 to avoid doing blocking calls for when the bar isn't shown but this patch makes it fully async now.
Moreover, refresh only every 60 seconds (it's what Dolphin as well as Plasma's free space warning do),
currently it would refresh every frame

Differential Revision: https://phabricator.kde.org/D16311

Details

Committed
broulikAug 28 2019, 2:23 PM
Differential Revision
D16311: RFC: [KFilePlacesView] Use asynchronous KIO::FileSystemFreeSpaceJob
Parents
R241:b2f8a938b915: Use isEmpty() here
Branches
Unknown
Tags
Unknown