From ab3c1497fbebd8e3b2b739b983765eaaabd17ce8 Mon Sep 17 00:00:00 2001 From: Matthew Fosse Date: Thu, 12 Sep 2024 10:49:48 -0700 Subject: [PATCH] minor notification updates --- lib/entities/background_tasks.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/entities/background_tasks.dart b/lib/entities/background_tasks.dart index 631e16836..a2103e304 100644 --- a/lib/entities/background_tasks.dart +++ b/lib/entities/background_tasks.dart @@ -207,14 +207,16 @@ Future onStart(ServiceInstance service) async { for (int i = 0; i < syncingWallets.length; i++) { final wallet = syncingWallets[i]; final syncProgress = ((wallet!.syncStatus.progress()) * 100).toStringAsPrecision(5); - String title = "${wallet.name} - ${wallet.type}"; + + String prefix = walletTypeToCryptoCurrency(wallet.type).title; + String title = "$prefix - ${wallet.name}"; late String content; try { final blocksLeft = (wallet.syncStatus as SyncingSyncStatus).blocksLeft; content = "${blocksLeft} Blocks Left"; } catch (e) { print(e); - content = "${wallet.name} ${syncProgress}% Synced"; + content = "${syncProgress}% Synced"; } content += " - ${DateTime.now()}";