From d6e9f5f649152ec19df1628d2c004f0bba019742 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 25 May 2019 21:20:48 +0200 Subject: [PATCH] fixed icons now loading --- shared/js/FileManager.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/shared/js/FileManager.ts b/shared/js/FileManager.ts index 753167c3..c9e38e1f 100644 --- a/shared/js/FileManager.ts +++ b/shared/js/FileManager.ts @@ -598,11 +598,17 @@ class IconManager { async resolve_icon(id: number) : Promise { id = id >>> 0; try { - return await this.resolved_cached(id); + const result = await this.resolved_cached(id); + if(result) + return result; + throw ""; } catch(error) { } try { - return await this.download_icon(id); + const result = await this.download_icon(id); + if(result) + return result; + throw "load result is empty"; } catch(error) { console.error(tr("Icon download failed of icon %d: %o"), id, error); }