A snapshot of the working tree for aelrynth.com/git/: the code, build files and public docs. Internal review notes and agent instructions are left out. MIT licensed; see LICENSE. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
698 B
C#
25 lines
698 B
C#
using Avalonia;
|
|
using Avalonia.Controls.ApplicationLifetimes;
|
|
using Avalonia.Markup.Xaml;
|
|
using Avalonia.Threading;
|
|
|
|
namespace RynthCore.MonsterEditor;
|
|
|
|
public partial class App : Application
|
|
{
|
|
public override void Initialize() => AvaloniaXamlLoader.Load(this);
|
|
|
|
public override void OnFrameworkInitializationCompleted()
|
|
{
|
|
Dispatcher.UIThread.UnhandledException += (_, e) =>
|
|
{
|
|
Program.Log($"DISPATCHER: {e.Exception}");
|
|
e.Handled = false;
|
|
};
|
|
|
|
if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
|
|
desktop.MainWindow = new MainWindow();
|
|
|
|
base.OnFrameworkInitializationCompleted();
|
|
}
|
|
}
|