Blacksuan19 / plasma-wallpaper-wallhaven-reborn

Wallhaven wallpaper plugin for plasma 6
GNU General Public License v3.0
11 stars 1 forks source link

Cache latest downloaded wallpaper. #9

Open prykhodev opened 5 days ago

prykhodev commented 5 days ago

Right now when i'm logging into my machine there is always error with loading new wallpaper because of connection trough wi-fi being established. It would be nice if there will be some wallpaper instead of black screen. So i thing the solution is to cache only one image that was downloaded last and display it in such cases.

Blacksuan19 commented 5 days ago

the previously used wallpaper remains if you just logout or if the device sleeps, the only case where there is no wallpaper is if you reboot, I assume you mean after a reboot?

I don't want to implement caching on purpose, mainly because the whole point of using this plugin is to get random wallpapers for me and I rarely reboot my laptop, I implemented the retry request feature to address the issue of black screen at the start until you manually refresh after connecting to a network, from what you are saying this seems to work fine, I don't think 5-10 seconds of black screen justifies implementing caching. nonetheless, you can manually replace the blackscreen.jpg image in the plugin directory with whatever image you want, maybe I will expose that on the config page so you can set a default wallpaper when none can be fetched.