Open links in the web browser
MODIFY
WalletWasabi.Fluent/ViewModels/AboutViewModel.cs
WalletWasabi.Fluent/ViewModels/AboutViewModel.cs
@@ -39,14 +39,14 @@ namespace WalletWasabi.Fluent.ViewModels
AboutAdvancedInfoDialogCommand = ReactiveCommand.CreateFromTask(
execute: async () => await interaction.Handle(Unit.Default).ToTask());
- OpenBrowserCommand.ThrownExceptions
- .ObserveOn(RxApp.TaskpoolScheduler)
- .Subscribe(ex => Logger.LogError(ex));
+ OpenBrowserCommand= ReactiveCommand.CreateFromTask<string>(
+ async (link) =>
+ await IoHelpers.OpenBrowserAsync(link));
}
public ICommand AboutAdvancedInfoDialogCommand { get; }
- public ReactiveCommand<string, Unit> OpenBrowserCommand { get; }
+ public ICommand OpenBrowserCommand { get; }
public Version ClientVersion => Constants.ClientVersion;
@@ -66,6 +66,6 @@ namespace WalletWasabi.Fluent.ViewModels
public static string DocsLink => "https://docs.wasabiwallet.io/";
- public static string License => "https://github.com/zkSNACKs/WalletWasabi/blob/master/LICENSE.md";
+ public static string LicenseLink => "https://github.com/zkSNACKs/WalletWasabi/blob/master/LICENSE.md";
}
}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Views/AboutView.axaml
WalletWasabi.Fluent/Views/AboutView.axaml
<DockPanel>
<StackPanel Spacing="10" DockPanel.Dock="Bottom" HorizontalAlignment="Left" Orientation="Vertical">
<WrapPanel Margin="0 0 0 25">
- <Button Classes="plain" Command="{Binding OpenBrowserCommand}"
- CommandParameter="{Binding DocsLink}">
+ <Button Classes="plain"
+ Command="{Binding OpenBrowserCommand}"
+ CommandParameter="{x:Static vm:AboutViewModel.DocsLink}">
<TextBlock Text="Documentation" Classes="Hyperlink" />
</Button>
<TextBlock Classes="LinkSeparatorPadding" Text="-" />
<Button Classes="plain" Command="{Binding OpenBrowserCommand}"
- CommandParameter="{Binding SourceCodeLink}">
+ CommandParameter="{x:Static vm:AboutViewModel.SourceCodeLink}">
<TextBlock Text="Source Code (Github)" Classes="Hyperlink" />
</Button>
<TextBlock Classes="LinkSeparatorPadding" Text="-" />
- <Button Classes="plain" Command="{Binding OpenBrowserCommand}"
- CommandParameter="{Binding ClearnetLink}">
+ <Button Classes="plain"
+ Command="{Binding OpenBrowserCommand}"
+ CommandParameter="{x:Static vm:AboutViewModel.ClearnetLink}">
<TextBlock Text="Website (Clearnet)" Classes="Hyperlink" />
</Button>
<TextBlock Classes="LinkSeparatorPadding" Text="-" />
- <Button Classes="plain" Command="{Binding OpenBrowserCommand}" CommandParameter="{Binding TorLink}">
+ <Button Classes="plain" Command="{Binding OpenBrowserCommand}"
+ CommandParameter="{x:Static vm:AboutViewModel.TorLink}">
<TextBlock Text="Website (Tor)" Classes="Hyperlink" />
</Button>
<TextBlock Classes="LinkSeparatorPadding" Text="-" />
- <Button Classes="plain" Command="{Binding OpenBrowserCommand}"
- CommandParameter="{Binding StatusPageLink}">
+ <Button Classes="plain"
+ Command="{Binding OpenBrowserCommand}"
+ CommandParameter="{x:Static vm:AboutViewModel.StatusPageLink}">
<TextBlock Text="Coordinator Status Page" Classes="Hyperlink" />
</Button>
<TextBlock Classes="LinkSeparatorPadding" Text="-" />
<Button Classes="plain" Command="{Binding OpenBrowserCommand}"
- CommandParameter="{Binding UserSupportLink}">
+ CommandParameter="{x:Static vm:AboutViewModel.UserSupportLink}">
<TextBlock Text="User Support" Classes="Hyperlink" />
</Button>
<TextBlock Classes="LinkSeparatorPadding" Text="-" />
<Button Classes="plain" Command="{Binding OpenBrowserCommand}"
- CommandParameter="{Binding BugReportLink}">
+ CommandParameter="{x:Static vm:AboutViewModel.BugReportLink}">
<TextBlock Text="Bug Reporting" Classes="Hyperlink" />
</Button>
<TextBlock Classes="LinkSeparatorPadding" Text="-" />
- <Button Classes="plain" Command="{Binding OpenBrowserCommand}" CommandParameter="{Binding FAQLink}">
+ <Button Classes="plain"
+ Command="{Binding OpenBrowserCommand}"
+ CommandParameter="{x:Static vm:AboutViewModel.FAQLink}">
<TextBlock Text="FAQs" Classes="Hyperlink" />
</Button>
</WrapPanel>
<WrapPanel HorizontalAlignment="Center">
<TextBlock Margin=" 0 0 0 -0.5" Text="This open source software is licensed with " />
- <Button Classes="plain" Command="{Binding OpenBrowserCommand}"
- CommandParameter="{Binding License}">
+ <Button Classes="plain"
+ Command="{Binding OpenBrowserCommand}"
+ CommandParameter="{x:Static vm:AboutViewModel.LicenseLink}">
<TextBlock Text="MIT License" Classes="Hyperlink" />
</Button>
<TextBlock Margin=" 0 0 0 -0.5" Text="." />

Open links in the web browser