From fb60b23394e28bb9b79caa9ffe4c4e9f6ebe977f Mon Sep 17 00:00:00 2001 From: Space Time Date: Sun, 2 Mar 2025 22:40:29 +0800 Subject: [PATCH] =?UTF-8?q?0.0.1=20->=201.1.5=20=E7=AC=AC2=E6=AC=A1?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Program.cs b/Program.cs index d2749f4..f442c14 100644 --- a/Program.cs +++ b/Program.cs @@ -10,14 +10,10 @@ internal sealed class Program [STAThread] private static async Task Main(string[] args) { - try - { - AppBuilder.Configure() - .UsePlatformDetect() - .WithInterFont() - .StartWithClassicDesktopLifetime(args); - } + try { BuildAvaloniaApp().StartWithClassicDesktopLifetime(args); } catch (Exception ex) { await MessageBoxManager.GetMessageBoxStandard(string.Empty, $"Error: {ex.Message}").ShowAsync(); } } + + private static AppBuilder BuildAvaloniaApp() => AppBuilder.Configure().UsePlatformDetect().WithInterFont(); }