diff --git a/SPTInstaller/App.axaml.cs b/SPTInstaller/App.axaml.cs index ea4dca0..6f10e85 100644 --- a/SPTInstaller/App.axaml.cs +++ b/SPTInstaller/App.axaml.cs @@ -1,8 +1,11 @@ -using Avalonia; +using Avalonia; using Avalonia.Controls.ApplicationLifetimes; using Avalonia.Markup.Xaml; +using ReactiveUI; +using Serilog; using SPTInstaller.ViewModels; using SPTInstaller.Views; +using System.Reactive; namespace SPTInstaller; @@ -11,6 +14,12 @@ public partial class App : Application public override void Initialize() { AvaloniaXamlLoader.Load(this); + + RxApp.DefaultExceptionHandler = Observer.Create((exception) => + { + Log.Error(exception, "An application exception occurred"); + }); + } public override void OnFrameworkInitializationCompleted() diff --git a/SPTInstaller/Program.cs b/SPTInstaller/Program.cs index 43f5f78..019fd25 100644 --- a/SPTInstaller/Program.cs +++ b/SPTInstaller/Program.cs @@ -4,7 +4,6 @@ using ReactiveUI; using Serilog; using Splat; using SPTInstaller.Controllers; -using SPTInstaller.CustomControls; using SPTInstaller.Helpers; using SPTInstaller.Installer_Tasks; using SPTInstaller.Installer_Tasks.PreChecks; diff --git a/SPTInstaller/SPTInstaller.csproj b/SPTInstaller/SPTInstaller.csproj index 3c33310..263d4bf 100644 --- a/SPTInstaller/SPTInstaller.csproj +++ b/SPTInstaller/SPTInstaller.csproj @@ -9,8 +9,8 @@ icon.ico Assets\icon.ico Debug;Release;TEST - 2.11 - 2.11 + 2.12 + 2.12