Allowed ErrorWindow to close properly.

This commit is contained in:
alphafetus committed 2023-11-23 17:35:40 -05:00
1 parent 663fb256e5
commit 93219aaf9b
7 files changed
+16 -293

No files matched your search

+4 -1
View File
@@ -1,5 +1,7 @@
using System;
using Avalonia.ReactiveUI;
using PcgsInvUi.ViewModels;
using ReactiveUI;
namespace PcgsInvUi.Views;
@@ -7,5 +9,6 @@ public partial class ErrorWindow : ReactiveWindow<ErrorWindowViewModel> {
public ErrorWindow()
{
InitializeComponent();
this.WhenActivated(d => d(ViewModel!.CloseCommand.Subscribe(Close)));
}
}
}