From a0ada513257826b976df90a3239673b62cf02a35 Mon Sep 17 00:00:00 2001 From: ww-rm Date: Tue, 30 Sep 2025 09:21:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=A8=E7=BA=BF=E7=A8=8B?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SpineViewer/App.xaml.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SpineViewer/App.xaml.cs b/SpineViewer/App.xaml.cs index dcc6c12..b9eb044 100644 --- a/SpineViewer/App.xaml.cs +++ b/SpineViewer/App.xaml.cs @@ -186,8 +186,11 @@ namespace SpineViewer if (args.Count > 0) { - var vm = (MainWindowViewModel)((MainWindow)Current.MainWindow).DataContext; - Current.Dispatcher.Invoke(() => vm.SpineObjectListViewModel.AddSpineObjectFromFileList(args)); + Current.Dispatcher.Invoke(() => + { + var vm = (MainWindowViewModel)((MainWindow)Current.MainWindow).DataContext; + vm.SpineObjectListViewModel.AddSpineObjectFromFileList(args); + }); } } } @@ -202,7 +205,6 @@ namespace SpineViewer base.OnStartup(e); var uiCulture = CultureInfo.CurrentUICulture.Name.ToLowerInvariant(); _logger.Info("Current UI Culture: {0}", uiCulture); - if (uiCulture.StartsWith("zh")) { } // 默认就是中文, 无需操作 else if (uiCulture.StartsWith("ja")) Language = AppLanguage.JA; else Language = AppLanguage.EN;