remove isLoading and its loading ring
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacySuggestionsFlyoutViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/PrivacySuggestionsFlyoutViewModel.cs
@@ -17,7 +17,6 @@ public partial class PrivacySuggestionsFlyoutViewModel : ViewModelBase
[AutoNotify] private SuggestionViewModel? _previewSuggestion;
[AutoNotify] private SuggestionViewModel? _selectedSuggestion;
[AutoNotify] private bool _isOpen;
- [AutoNotify] private bool _isLoading;
public PrivacySuggestionsFlyoutViewModel()
{
@@ -37,8 +36,6 @@ public partial class PrivacySuggestionsFlyoutViewModel : ViewModelBase
public async Task BuildPrivacySuggestionsAsync(Wallet wallet, TransactionInfo info, BitcoinAddress destination, BuildTransactionResult transaction, CancellationToken cancellationToken = default)
{
- IsLoading = true;
-
Suggestions.Clear();
SelectedSuggestion = null;
@@ -52,8 +49,6 @@ public partial class PrivacySuggestionsFlyoutViewModel : ViewModelBase
var hasChange = transaction.InnerWalletOutputs.Any(x => x.ScriptPubKey != destination.ScriptPubKey);
- IsLoading = false;
-
if (hasChange)
{
try

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/TransactionPreviewView.axaml
ToolTip.Tip="Your privacy is being protected with PayJoin."
IsVisible="{Binding CurrentTransactionSummary.IsPayJoin}" />
- <c:ProgressRing Margin="10 0 10 5" Height="25" Width="25" IsIndeterminate="True" IsVisible="{Binding PrivacySuggestions.IsLoading}" />
-
<Border Padding="10 0 10 10" Cursor="Hand" IsVisible="{Binding CurrentTransactionSummary.MaxPrivacy}">
<Interaction.Behaviors>
<behaviors:ShowFlyoutOnPointerOverBehavior />
<Setter Property="BoxShadow" Value="{StaticResource OptimizePrivacyOptionBoxShadow1}" />
</Style>
-
<Style Selector="ListBoxItem Border#PART_DecorationBorderHover">
<Setter Property="Padding" Value="15 25 15 25" />
<Setter Property="CornerRadius" Value="4" />
<Setter Property="BoxShadow" Value="{StaticResource OptimizePrivacyOptionBoxShadow2}" />
<Setter Property="Opacity" Value="0" />
-
</Style>
<Style Selector="ListBoxItem:pointerover Border#PART_DecorationBorderHover">
<Setter Property="Opacity" Value="1" />
</Style>
-
</ListBox.Styles>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
</FlyoutBase.AttachedFlyout>
<Panel.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
- <Binding Path="PrivacySuggestions.IsLoading" Converter="{x:Static BoolConverters.Not}"/>
<MultiBinding Converter="{x:Static BoolConverters.Or}">
<Binding Path="CurrentTransactionSummary.TransactionHasChange" />
<Binding Path="CurrentTransactionSummary.TransactionHasPockets" />

remove isLoading and its loading ring