Fix some small nullable warnings
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/TransactionViewModel.cs
@@ -92,7 +92,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
set => this.RaiseAndSetIfChanged(ref _clipboardNotificationOpacity, value);
}
- public CancellationTokenSource CancelClipboardNotification { get; set; }
+ public CancellationTokenSource? CancelClipboardNotification { get; set; }
public void Refresh()
{

MODIFY
WalletWasabi.Gui/MainWindow.xaml.cs
WalletWasabi.Gui/MainWindow.xaml.cs
using Avalonia;
using Avalonia.Controls.Notifications;
using Avalonia.Markup.Xaml;
+using AvalonStudio.Documents;
using AvalonStudio.Extensibility;
using AvalonStudio.Shell;
using AvalonStudio.Shell.Controls;
@@ -104,7 +105,9 @@ namespace WalletWasabi.Gui
{
Global.UiConfig.WindowState = WindowState;
- Global.UiConfig.LastActiveTab = IoC.Get<IShell>().SelectedDocument?.GetType().Name;
+ IDocumentTabViewModel? selectedDocument = IoC.Get<IShell>().SelectedDocument;
+ Global.UiConfig.LastActiveTab = selectedDocument is { } ? selectedDocument.GetType().Name : "";
+
Global.UiConfig.ToFile();
Logger.LogInfo($"{nameof(Global.UiConfig)} is saved.");
}

MODIFY
WalletWasabi.Gui/UiConfig.cs
WalletWasabi.Gui/UiConfig.cs
@@ -24,7 +24,7 @@ namespace WalletWasabi.Gui
{
private bool _lurkingWifeMode;
private bool _lockScreenActive;
- private string _lockScreenPinHash;
+ private string _lockScreenPinHash = "";
private bool _isCustomFee;
private bool _isCustomChangeAddress;
private bool _autocopy;
@@ -51,7 +51,7 @@ namespace WalletWasabi.Gui
[DefaultValue("")]
[JsonProperty(PropertyName = "LastActiveTab", DefaultValueHandling = DefaultValueHandling.Populate)]
- public string LastActiveTab { get; internal set; }
+ public string LastActiveTab { get; internal set; } = "";
[DefaultValue(true)]
[JsonProperty(PropertyName = "Autocopy", DefaultValueHandling = DefaultValueHandling.Populate)]

Fix some small nullable warnings