mirror of
https://code.gri.mw/GUI/grim.git
synced 2026-07-13 02:08:54 +00:00
Goblin: dedupe balance sync indicator
Remove the Build 135 balance-hero "Updating…" line. During a routine sync it duplicated the header node card's "Syncing" status, so a funded wallet showed two updating indicators at once. Keep the established "Balance updating…" line (zero-balance / first-sync case) and the header status as the single sync indicators. Drop the now-orphan goblin.home.updating key from all six locales (i18n drift green).
This commit is contained in:
@@ -366,7 +366,6 @@ goblin:
|
||||
node_synced: "Node synchronisiert"
|
||||
syncing: "Synchronisiere…"
|
||||
balance_updating: "Guthaben wird aktualisiert…"
|
||||
updating: "Wird aktualisiert…"
|
||||
listening: "Wartet auf Zahlungen"
|
||||
block: "Block %{height}"
|
||||
waiting_for_chain: "Warte auf Chain…"
|
||||
|
||||
@@ -366,7 +366,6 @@ goblin:
|
||||
node_synced: "Node synced"
|
||||
syncing: "Syncing…"
|
||||
balance_updating: "Balance updating…"
|
||||
updating: "Updating…"
|
||||
listening: "Listening for payments"
|
||||
block: "Block %{height}"
|
||||
waiting_for_chain: "Waiting for chain…"
|
||||
|
||||
@@ -366,7 +366,6 @@ goblin:
|
||||
node_synced: "Nœud synchronisé"
|
||||
syncing: "Synchronisation…"
|
||||
balance_updating: "Solde en cours de mise à jour…"
|
||||
updating: "Mise à jour…"
|
||||
listening: "En attente de paiements"
|
||||
block: "Bloc %{height}"
|
||||
waiting_for_chain: "En attente de la chaîne…"
|
||||
|
||||
@@ -366,7 +366,6 @@ goblin:
|
||||
node_synced: "Узел синхронизирован"
|
||||
syncing: "Синхронизация…"
|
||||
balance_updating: "Баланс обновляется…"
|
||||
updating: "Обновление…"
|
||||
listening: "Ожидание платежей"
|
||||
block: "Блок %{height}"
|
||||
waiting_for_chain: "Ожидание цепочки…"
|
||||
|
||||
@@ -366,7 +366,6 @@ goblin:
|
||||
node_synced: "Düğüm eşitlendi"
|
||||
syncing: "Eşitleniyor…"
|
||||
balance_updating: "Bakiye güncelleniyor…"
|
||||
updating: "Güncelleniyor…"
|
||||
listening: "Ödemeler bekleniyor"
|
||||
block: "Blok %{height}"
|
||||
waiting_for_chain: "Zincir bekleniyor…"
|
||||
|
||||
@@ -366,7 +366,6 @@ goblin:
|
||||
node_synced: "节点已同步"
|
||||
syncing: "同步中…"
|
||||
balance_updating: "余额更新中…"
|
||||
updating: "更新中…"
|
||||
listening: "正在监听付款"
|
||||
block: "区块 %{height}"
|
||||
waiting_for_chain: "等待链数据…"
|
||||
|
||||
@@ -1012,7 +1012,6 @@ impl GoblinWalletView {
|
||||
total,
|
||||
spendable,
|
||||
updating,
|
||||
wallet.syncing(),
|
||||
wallet.info_sync_progress(),
|
||||
fiat_line(&data).as_deref(),
|
||||
56.0,
|
||||
|
||||
@@ -463,15 +463,12 @@ pub fn field_well(ui: &mut Ui, content: impl FnOnce(&mut Ui)) {
|
||||
|
||||
/// A balance hero block: kicker, big number + ツ, optional fiat line.
|
||||
/// `updating` marks a zero balance that is only zero because funds are in
|
||||
/// flight or the first sync is still running. `node_updating` flags a
|
||||
/// still-warming node (not yet synced) so a possibly-stale balance shows a
|
||||
/// quiet "Updating…" line too.
|
||||
/// flight or the first sync is still running.
|
||||
pub fn balance_hero(
|
||||
ui: &mut Ui,
|
||||
total: u64,
|
||||
spendable: u64,
|
||||
updating: bool,
|
||||
node_updating: bool,
|
||||
sync_pct: u8,
|
||||
fiat: Option<&str>,
|
||||
size: f32,
|
||||
@@ -519,17 +516,6 @@ pub fn balance_hero(
|
||||
.color(t.text_dim),
|
||||
);
|
||||
});
|
||||
} else if node_updating {
|
||||
// Node still warming (not yet synced): the shown balance may be stale,
|
||||
// so flag it with a quiet "Updating…". Clears once the node is ready.
|
||||
ui.add_space(4.0);
|
||||
ui.vertical_centered(|ui| {
|
||||
ui.label(
|
||||
RichText::new(t!("goblin.home.updating").to_string())
|
||||
.font(FontId::new(12.5, fonts::medium()))
|
||||
.color(t.text_dim),
|
||||
);
|
||||
});
|
||||
}
|
||||
if let Some(fiat) = fiat {
|
||||
ui.add_space(4.0);
|
||||
|
||||
Reference in New Issue
Block a user