rework plugin start so name and icon can be passed to eth

This commit is contained in:
Clement Bouvet
2023-02-21 11:15:20 +01:00
committed by Alexandre Paillier
parent b5c58b59cf
commit 0414a043c8
5 changed files with 57 additions and 21 deletions

View File

@@ -135,4 +135,15 @@ const char *get_app_network_ticker(void) {
const char *get_tx_network_ticker(void) {
return get_network_ticker(TX);
}
}
#ifdef HAVE_NBGL
#include "glyphs.h"
const nbgl_icon_details_t *get_app_chain_icon(void) {
if (chainConfig->coinIconDetails.bitmap) {
return &chainConfig->coinIconDetails; // if called from a clone, the bitmap is correct
} else {
return &ICONGLYPH; // else, jsu return the ETH icon
}
}
#endif // HAVE_NBGL