fix nullable issues in 2 files.
MODIFY
WalletWasabi.Fluent/CrashReport/ViewModels/CrashReportWindowViewModel.cs
WalletWasabi.Fluent/CrashReport/ViewModels/CrashReportWindowViewModel.cs
@@ -23,8 +23,11 @@ public class CrashReportWindowViewModel : ViewModelBase
});
CopyTraceCommand = ReactiveCommand.CreateFromTask(async () =>
+ {
+ if (Application.Current is { } && Application.Current.Clipboard is { })
{
await Application.Current.Clipboard.SetTextAsync(Trace);
+ }
});
}

MODIFY
WalletWasabi.Fluent/Morph/PolyLine.cs
WalletWasabi.Fluent/Morph/PolyLine.cs
@@ -4,15 +4,23 @@ namespace WalletWasabi.Fluent.Morph;
public class PolyLine
{
+ public PolyLine()
+ {
+ XValues = new ObservableCollection<double>();
+ YValues = new ObservableCollection<double>();
+ }
+
+ public PolyLine(ObservableCollection<double> xValues, ObservableCollection<double> yValues)
+ {
+ XValues = xValues;
+ YValues = yValues;
+ }
+
public ObservableCollection<double> XValues { get; set; }
public ObservableCollection<double> YValues { get; set; }
public PolyLine Clone()
{
- return new()
- {
- XValues = new ObservableCollection<double>(XValues),
- YValues = new ObservableCollection<double>(YValues)
- };
+ return new PolyLine(XValues, YValues);
}
}

fix nullable issues in 2 files.