mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
Update parser for simple-icons
This commit is contained in:
parent
3de1c8011a
commit
28c29a0c3a
@ -200,7 +200,7 @@ class IconUtils {
|
||||
final simpleIconData = await rootBundle
|
||||
.loadString('assets/simple-icons/_data/simple-icons.json');
|
||||
final simpleIcons = json.decode(simpleIconData);
|
||||
for (final icon in simpleIcons["icons"]) {
|
||||
for (final icon in simpleIcons) {
|
||||
_simpleIcons[icon["title"]
|
||||
.toString()
|
||||
.replaceAll(' ', '')
|
||||
@ -227,8 +227,8 @@ class IconUtils {
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
Logger("IconUtils").severe("Error loading icons", e);
|
||||
} catch (e, s) {
|
||||
Logger("IconUtils").severe("Error loading icons", e, s);
|
||||
if (kDebugMode) {
|
||||
rethrow;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user