From 3b0f5630feb2eb1ceaf7ebc16a2514e82993fad6 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Fri, 16 Jan 2026 22:30:04 +0100 Subject: [PATCH] Nostr: display balance --- .../apps/com.micropythonos.nostr/assets/nostr.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal_filesystem/apps/com.micropythonos.nostr/assets/nostr.py b/internal_filesystem/apps/com.micropythonos.nostr/assets/nostr.py index b0c2575e..bb0425c4 100644 --- a/internal_filesystem/apps/com.micropythonos.nostr/assets/nostr.py +++ b/internal_filesystem/apps/com.micropythonos.nostr/assets/nostr.py @@ -166,6 +166,10 @@ class Nostr(Activity): self.fullscreenqr.finish() balance = self.wallet.last_known_balance print(f"balance: {balance}") + if balance is not None: + WidgetAnimator.change_widget(self.balance_label, anim_type="interpolate", duration=5000, delay=0, begin_value=balance-sats_added, end_value=balance, display_change=self.display_balance) + else: + print("Not drawing balance because it's None") def redraw_payments_cb(self): # this gets called from another thread (the wallet) so make sure it happens in the LVGL thread using lv.async_call():