diff options
author | Andrew January <ajanuary@evertz.com> | 2021-08-17 13:02:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-20 15:31:22 +0200 |
commit | 1474a537b630ef1b6b638164bca9043f0622d617 (patch) | |
tree | aa2a516275dc341e33c424c7a2f1a10219d554ac /Userland/Applications/Spreadsheet/Readers | |
parent | ac055554f6b353c185d24df1a21dc4920abc05bf (diff) | |
download | serenity-1474a537b630ef1b6b638164bca9043f0622d617.zip |
DisplaySettings: Lazily load wallpapers
Load the wallpaper in a background action instead of on the main thread.
This reduces the time to first paint, and makes the UI feel more
responsive when clicking on wallpaper thumbnails.
The behavior of the method is changed slightly to return true if it
succesfully "loads" the empty path. This makes the API a little more
consistent, where "true" means "I made changes" and "false" means "I did
not make changes". No call sites currently use the return value, so no
changes are needed to those.
Diffstat (limited to 'Userland/Applications/Spreadsheet/Readers')
0 files changed, 0 insertions, 0 deletions