From 408fac5c545c4294c81df5fff36b2fed19d7fe55 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 8 Nov 2026 03:34:38 +0100 Subject: web: restore the balance on a refresh into history The gateway hello now carries the core's last known balance alongside the user, so a refresh on a non-game view does not blank the header before the next INFO reply. --- src/client/core.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/core.rs') diff --git a/src/client/core.rs b/src/client/core.rs index 278dc00..f120fa1 100644 --- a/src/client/core.rs +++ b/src/client/core.rs @@ -139,6 +139,10 @@ impl ClientCore { self.game.set_balance(balance); } + pub fn balance(&self) -> Option { + self.balance + } + pub fn set_host_info(&mut self, host: Option, fingerprint: Option) { self.host = host; self.fingerprint = fingerprint; -- cgit v1.2.3