feat: progress bar is not broken when started from 0 or earlier than first scan block

This commit is contained in:
Rafael Saes 2025-04-28 13:41:06 -03:00
parent ab963de769
commit 77c9ca1788

View file

@ -1588,6 +1588,8 @@ class ElectrumWorker {
final tweakHeight = response.block;
if (initialSyncHeight < tweakHeight) initialSyncHeight = tweakHeight;
// Continuous status UI update, send how many blocks left to scan
final syncingStatus = scanData.isSingleScan
? SyncingSyncStatus(1, 0)