mirror of
https://github.com/sp-tarkov/patcher.git
synced 2025-02-12 16:50:45 -05:00
add reactive UI logging of exceptions
This commit is contained in:
parent
7a96f95a01
commit
16bf006964
@ -3,6 +3,10 @@ using Avalonia.Controls.ApplicationLifetimes;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using PatchClient.ViewModels;
|
||||
using PatchClient.Views;
|
||||
using ReactiveUI;
|
||||
using System.Reactive;
|
||||
using System;
|
||||
using PatcherUtils.Model;
|
||||
|
||||
namespace PatchClient
|
||||
{
|
||||
@ -11,6 +15,11 @@ namespace PatchClient
|
||||
public override void Initialize()
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
|
||||
RxApp.DefaultExceptionHandler = Observer.Create<Exception>((exception) =>
|
||||
{
|
||||
PatchLogger.LogException(exception);
|
||||
});
|
||||
}
|
||||
|
||||
public override void OnFrameworkInitializationCompleted()
|
||||
|
@ -4,8 +4,8 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
||||
<Nullable>enable</Nullable>
|
||||
<AssemblyVersion>2.9.4</AssemblyVersion>
|
||||
<FileVersion>2.9.4</FileVersion>
|
||||
<AssemblyVersion>2.9.5</AssemblyVersion>
|
||||
<FileVersion>2.9.5</FileVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<AvaloniaResource Include="Assets\**" />
|
||||
|
@ -4,6 +4,10 @@ using Avalonia.Markup.Xaml;
|
||||
using PatchGenerator.Models;
|
||||
using PatchGenerator.ViewModels;
|
||||
using PatchGenerator.Views;
|
||||
using ReactiveUI;
|
||||
using System.Reactive;
|
||||
using System;
|
||||
using PatcherUtils.Model;
|
||||
|
||||
namespace PatchGenerator
|
||||
{
|
||||
@ -12,6 +16,12 @@ namespace PatchGenerator
|
||||
public override void Initialize()
|
||||
{
|
||||
AvaloniaXamlLoader.Load(this);
|
||||
|
||||
RxApp.DefaultExceptionHandler = Observer.Create<Exception>((exception) =>
|
||||
{
|
||||
PatchLogger.LogException(exception);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
public override void OnFrameworkInitializationCompleted()
|
||||
|
@ -4,8 +4,8 @@
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<IncludeNativeLibrariesForSelfExtract>true</IncludeNativeLibrariesForSelfExtract>
|
||||
<Nullable>enable</Nullable>
|
||||
<AssemblyVersion>2.9.4</AssemblyVersion>
|
||||
<FileVersion>2.9.4</FileVersion>
|
||||
<AssemblyVersion>2.9.5</AssemblyVersion>
|
||||
<FileVersion>2.9.5</FileVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
BIN
Patcher/PatchGenerator/Resources/PatchClient.exe
(Stored with Git LFS)
BIN
Patcher/PatchGenerator/Resources/PatchClient.exe
(Stored with Git LFS)
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user