handle case when wallet is already synchronized
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/ClosedWalletViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/ClosedWalletViewModel.cs
@@ -86,6 +86,11 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets
private void SetStatusText(uint percent, uint startingPercent, Stopwatch stopwatch)
{
+ if (percent == 0)
+ {
+ return;
+ }
+
var percentText = $"{percent}% completed";
var remainingMilliseconds = (stopwatch.Elapsed.TotalMilliseconds / percent - startingPercent) * (100 - percent);

MODIFY
WalletWasabi.Fluent/Views/Wallets/ClosedWalletView.axaml
WalletWasabi.Fluent/Views/Wallets/ClosedWalletView.axaml
x:DataType="wallets:ClosedWalletViewModel">
<DockPanel LastChildFill="True" HorizontalAlignment="Center" VerticalAlignment="Center" MaxWidth="500">
<TextBlock Text="{Binding EstimationText}" Opacity="0.6" DockPanel.Dock="Bottom" Margin="0 10 0 0"/>
- <ProgressBar Value="{Binding Percent}" DockPanel.Dock="Bottom"/>
+ <ProgressBar Value="{Binding Percent}" IsIndeterminate="{Binding !Percent}" DockPanel.Dock="Bottom"/>
<TextBlock Text="This process may take a long time depending on the size of yout wallet. Grab a coffee or watch a movie." TextAlignment="Center" TextWrapping="Wrap" Opacity="0.6" DockPanel.Dock="Bottom" Margin="0 10 0 30"/>
<TextBlock Text="Wasabi is busy crunching data..." TextAlignment="Center" FontSize="22" DockPanel.Dock="Bottom" Margin="0 30 0 0"/>
<Viewbox MaxHeight="200" DockPanel.Dock="Top">

MODIFY
WalletWasabi.Fluent/Views/Wallets/HardwareWallet/ClosedHardwareWalletView.axaml
WalletWasabi.Fluent/Views/Wallets/HardwareWallet/ClosedHardwareWalletView.axaml
x:Class="WalletWasabi.Fluent.Views.Wallets.HardwareWallet.ClosedHardwareWalletView">
<DockPanel LastChildFill="True" HorizontalAlignment="Center" VerticalAlignment="Center" MaxWidth="500">
<TextBlock Text="{Binding EstimationText}" Opacity="0.6" DockPanel.Dock="Bottom" Margin="0 10 0 0" />
- <ProgressBar Value="{Binding Percent}" DockPanel.Dock="Bottom" />
+ <ProgressBar Value="{Binding Percent}" IsIndeterminate="{Binding !Percent}" DockPanel.Dock="Bottom" />
<TextBlock Text="This process may take a long time depending on the size of yout wallet. Grab a coffee or watch a movie." TextAlignment="Center" TextWrapping="Wrap" Opacity="0.6" DockPanel.Dock="Bottom" Margin="0 10 0 30" />
<TextBlock Text="Wasabi is busy crunching data..." TextAlignment="Center" FontSize="22" DockPanel.Dock="Bottom" Margin="0 30 0 0" />
<Viewbox MaxHeight="200" DockPanel.Dock="Top">

handle case when wallet is already synchronized