From 8f49fdb4057c65fb7e591cdc5195d28086e56eb7 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 8 Jun 2026 01:20:00 +1000 Subject: [PATCH] fix: allow non category walls in nexus wall select --- modules/nexus/pages/wallandstyle/WallpaperSelect.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/nexus/pages/wallandstyle/WallpaperSelect.qml b/modules/nexus/pages/wallandstyle/WallpaperSelect.qml index 83e0d73a..03b29505 100644 --- a/modules/nexus/pages/wallandstyle/WallpaperSelect.qml +++ b/modules/nexus/pages/wallandstyle/WallpaperSelect.qml @@ -102,17 +102,21 @@ PageBase { const walls = Wallpapers.list; const baseDir = Paths.wallsdir; const categories = {}; + const list = []; for (const w of walls) { if (w.parentDir !== baseDir) { const category = Wallpapers.getCategoryFor(w); if (category && (!(category in categories) || categories[category].name.localeCompare(w.name) > 0)) categories[category] = w; + } else { + list.push(w); } } - const cats = Object.values(categories); - while (cats.length < Config.nexus.wallpapersPerRow) - cats.push(null); - return cats; + list.push(...Object.values(categories)); + list.sort((a, b) => ((a.parentDir === baseDir) - (b.parentDir === baseDir)) || a.name.localeCompare(b.name)); + while (list.length < Config.nexus.wallpapersPerRow) + list.push(null); + return list; } WallItem {