revert sync status title

This commit is contained in:
fossephate 2024-09-24 08:37:44 -07:00
parent 633d5242c2
commit 6a4eaece98

View file

@ -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) {