Add details box
MODIFY
WalletWasabi.Gui/CrashReport/ViewModels/CrashReportWindowViewModel.cs
WalletWasabi.Gui/CrashReport/ViewModels/CrashReportWindowViewModel.cs
@@ -16,30 +16,25 @@ namespace WalletWasabi.Gui.CrashReport.ViewModels
var global = Locator.Current.GetService<Global>();
CrashReporter = global.CrashReporter;
- OpenLogCommand = ReactiveCommand.CreateFromTask(async () =>
- {
- await FileHelpers.OpenFileInTextEditorAsync(Logger.FilePath);
- });
+ OpenLogCommand = ReactiveCommand.CreateFromTask(async () => await FileHelpers.OpenFileInTextEditorAsync(Logger.FilePath));
OkCommand = ReactiveCommand.Create(() =>
{
+ // Close the application.
});
Observable
.Merge(OpenLogCommand.ThrownExceptions)
.Merge(OkCommand.ThrownExceptions)
.ObserveOn(RxApp.TaskpoolScheduler)
- .Subscribe(ex =>
- {
- Logger.LogError(ex);
- });
+ .Subscribe(ex => Logger.LogError(ex));
}
private CrashReporter CrashReporter { get; }
- public int MinWidth => 370;
- public int MinHeight => 180;
+ public int MinWidth => 520;
+ public int MinHeight => 280;
public string Title => "Wasabi Wallet - Crash Reporting";
- public string Details => "Wasabi has crashed. You can check the details here, open the log file, or report the crash to the support team. Please always consider your privacy before sharing any information!";
+ public string Details => $"Wasabi has crashed. You can check the details here, open the log file, or report the crash to the support team. {Environment.NewLine}{Environment.NewLine}Please always consider your privacy before sharing any information!";
public string Message => CrashReporter.GetException().Message;
public ReactiveCommand<Unit, Unit> OpenLogCommand { get; }

MODIFY
WalletWasabi.Gui/CrashReport/Views/CrashReportWindow.xaml
WalletWasabi.Gui/CrashReport/Views/CrashReportWindow.xaml
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cont="clr-namespace:AvalonStudio.Shell.Controls;assembly=AvalonStudio.Shell"
xmlns:wasabi="clr-namespace:WalletWasabi.Gui.Controls;assembly=WalletWasabi.Gui"
- xmlns:controls="clr-namespace:WalletWasabi.Gui.Controls;assembly=WalletWasabi.Gui"
x:Class="WalletWasabi.Gui.CrashReport.Views.CrashReportWindow"
Icon="avares://WalletWasabi.Gui/Assets/WasabiLogo256.png"
Title="{Binding Title}"
FontFamily="{DynamicResource UiFont}" FontSize="14"
Foreground="{DynamicResource ThemeForegroundBrush}"
WindowState="{Binding WindowState}"
- Classes="ToolWindow">
+ Classes="ToolWindow"
+ CanResize="False">
<DockPanel LastChildFill="True" Margin="25,0,25,25">
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="5" Margin="0,25,0,0">
<Button MinWidth="135" Height="35" Command="{Binding OpenLogCommand}">Open logs</Button>
<Button MinWidth="135" Height="35" Background="{DynamicResource ThemeAccentBrush}" Command="{Binding OkCommand}">Ok</Button>
</StackPanel>
<TextBlock DockPanel.Dock="Top" FontWeight="Bold" FontSize="18" Margin="0,0,0,25" Text="{Binding Message}" />
- <controls:MultiTextBox Text="{Binding Details}" />
+ <TextBox Text="{Binding Details}" IsReadOnly="True" Margin="0 8" TextWrapping="Wrap" AcceptsReturn="True" BorderThickness="0" />
</DockPanel>
</cont:MetroWindow>

Add details box