From 6a4eaece989bd840d12b442a7c2edef31745cb92 Mon Sep 17 00:00:00 2001 From: fossephate <matt.cfosse@gmail.com> Date: Tue, 24 Sep 2024 08:37:44 -0700 Subject: [PATCH] revert sync status title --- lib/core/sync_status_title.dart | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/lib/core/sync_status_title.dart b/lib/core/sync_status_title.dart index 53240875a..4582f7b1f 100644 --- a/lib/core/sync_status_title.dart +++ b/lib/core/sync_status_title.dart @@ -3,18 +3,9 @@ import 'package:cw_core/sync_status.dart'; String syncStatusTitle(SyncStatus syncStatus) { if (syncStatus is SyncingSyncStatus) { - - if (syncStatus.blocksLeft == 1) { - return S.current.block_remaining; - } - - String eta = syncStatus.getFormattedEta() ?? ''; - - if (eta.isEmpty) { - return S.current.Blocks_remaining('${syncStatus.blocksLeft}'); - } else { - return "${syncStatus.formattedProgress()} - $eta"; - } + return syncStatus.blocksLeft == 1 + ? S.current.block_remaining + : S.current.Blocks_remaining('${syncStatus.blocksLeft}'); } if (syncStatus is SyncedTipSyncStatus) {