feat(lite): show connection + sync status in the Network tab
Add a status panel at the top of the Network tab driven by the live WalletState: - Connection: a colored dot + Connected / Syncing / Not connected, with the in-use server host (or "Random server") and its latency on the right. - Sync: "<pct>% · <walletHeight> / <chainHeight>" while syncing (with a thin progress bar), "Synced · block N" when complete, or "No wallet open" when disconnected. Reads app->state().sync (populated by the lite refresh: progress / wallet+chain height / complete) and state().connected (= walletOpen). Advances with a Dummy so the bounds grow correctly. Both variants build; suite passes; hygiene clean; lite GUI smoke OK. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1080,6 +1080,13 @@ void I18n::loadBuiltinEnglish()
|
||||
strings_["lite_net_unhide"] = "Unhide";
|
||||
strings_["lite_net_show_hidden"] = "Show hidden servers";
|
||||
strings_["lite_net_hidden_section"] = "Hidden servers";
|
||||
strings_["lite_net_connected"] = "Connected";
|
||||
strings_["lite_net_disconnected"] = "Not connected";
|
||||
strings_["lite_net_syncing"] = "Syncing";
|
||||
strings_["lite_net_synced"] = "Synced";
|
||||
strings_["lite_net_random_server"] = "Random server";
|
||||
strings_["lite_net_sync_label"] = "Sync";
|
||||
strings_["lite_net_no_wallet"] = "No wallet open";
|
||||
|
||||
// --- Peers Tab ---
|
||||
strings_["peers_avg_ping"] = "Avg Ping";
|
||||
|
||||
Reference in New Issue
Block a user