Fix icon source pull exception blocking other sources

This commit is contained in:
crschnick
2025-05-16 21:36:41 +00:00
parent bcda26e054
commit 4df270cb2a

View File

@@ -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);