From 199f600c6374d7adf2d106cea93cbc67469ff9ba Mon Sep 17 00:00:00 2001 From: Dustin Brett Date: Tue, 14 Oct 2025 20:11:13 -0700 Subject: [PATCH] Wallpaper fix timeout --- README.md | 2 ++ components/system/Desktop/Wallpapers/useWallpaper.ts | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a840397..38269bfd 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,8 @@ - Set via image/video (Fill, Fit, Stretch, Tile, Center) - Picture Slideshow - [Astronomy Picture of the Day](https://api.nasa.gov/#apod) +- [Art Institute of Chicago](https://api.artic.edu/docs/) +- [Lorem Picsum](https://picsum.photos/) - AI Generated Wallpapers [Stable Diffusion](https://stability.ai/stable-diffusion) - Custom screen saver file support - [3D FlowerBox](https://github.com/kevin-shannon/3D-FlowerBox) diff --git a/components/system/Desktop/Wallpapers/useWallpaper.ts b/components/system/Desktop/Wallpapers/useWallpaper.ts index e04b651f..576df397 100644 --- a/components/system/Desktop/Wallpapers/useWallpaper.ts +++ b/components/system/Desktop/Wallpapers/useWallpaper.ts @@ -339,7 +339,10 @@ const useWallpaper = ( wallpaperUrl = newWallpaper.wallpaperUrl || ""; fallbackBackground = newWallpaper.fallbackBackground || ""; newWallpaperFit = newWallpaper.newWallpaperFit || newWallpaperFit; - setTimeout(loadFileWallpaper, newWallpaper.updateTimeout); + wallpaperTimerRef.current = setTimeout( + loadFileWallpaper, + newWallpaper.updateTimeout + ); } } else if (await exists(wallpaperImage)) { resetWallpaper();