From 4df270cb2ad7e539dafb0d57871c8dd613d7eeaa Mon Sep 17 00:00:00 2001 From: crschnick Date: Fri, 16 May 2025 21:36:41 +0000 Subject: [PATCH] Fix icon source pull exception blocking other sources --- .../io/xpipe/app/icon/SystemIconManager.java | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/io/xpipe/app/icon/SystemIconManager.java b/app/src/main/java/io/xpipe/app/icon/SystemIconManager.java index e19b4d036..5838f5836 100644 --- a/app/src/main/java/io/xpipe/app/icon/SystemIconManager.java +++ b/app/src/main/java/io/xpipe/app/icon/SystemIconManager.java @@ -94,21 +94,14 @@ public class SystemIconManager { } } - private static void clearInvalidImages() { - AppImages.remove(s -> s.startsWith("icons/")); - try { - for (var source : getEffectiveSources()) { - AppImages.loadRasterImages(SystemIconCache.getDirectory(source), "icons/" + source.getId()); - } - } catch (Exception e) { - ErrorEvent.fromThrowable(e).handle(); - } - } - public static synchronized void reload() throws Exception { Files.createDirectories(DIRECTORY); for (var source : getEffectiveSources()) { - source.refresh(); + try { + source.refresh(); + } catch (Exception e) { + ErrorEvent.fromThrowable(e).expected().handle(); + } } reloadSources(); SystemIconCache.rebuildCache(LOADED);