Hide context menu is no item selected on Receive Tab
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabView.xaml
</Style>
</controls:ExtendedListBox.Styles>
<controls:ExtendedListBox.ContextMenu>
- <ContextMenu>
+ <ContextMenu IsVisible="{Binding IsItemSelected}">
<MenuItem Header="{Binding SelectedAddress.ExpandMenuCaption}" Command="{Binding ToggleQrCode}">
<MenuItem.Icon>
<DrawingPresenter HorizontalAlignment="Left" Height="16" Width="16" Stretch="Fill" Drawing="{StaticResource ReceiveTabView_ToggleQrCode}" />

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/ReceiveTabViewModel.cs
@@ -75,6 +75,8 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
this.WhenAnyValue(x => x.SelectedAddress).Subscribe(async address =>
{
+ this.RaisePropertyChanged(nameof(IsItemSelected));
+
if (Global.UiConfig?.Autocopy is false || address is null)
{
return;
@@ -226,5 +228,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
get => _selectedAddress;
set => this.RaiseAndSetIfChanged(ref _selectedAddress, value);
}
+
+ public bool IsItemSelected => SelectedAddress is { };
}
}

Hide context menu is no item selected on Receive Tab