Xcube-Studio / Natsurainko.FluentLauncher

Natsurainko.FluentLauncher A Minecraft launcher designed for Windows 11
https://fluentlauncher.natsurainko.work/
MIT License
290 stars 15 forks source link

外观切换 #195

Closed BelazyFly closed 8 months ago

BelazyFly commented 11 months ago

Describe the bug

System.ArgumentException System.ArgumentException: An item with the same key has already been added. at ABI.System.Collections.Generic.IDictionaryMethods2.Add(IObjectReference obj, K key, V value) at Microsoft.UI.Xaml.ResourceDictionary.Add(Object key, Object value) at Natsurainko.FluentLauncher.Services.UI.AppearanceService.ApplyThemeColorBeforePageInit(ShellPage page) at Natsurainko.FluentLauncher.Views.ShellPage..ctor() at Natsurainko.FluentLauncher.Natsurainko_FluentLauncher_XamlTypeInfo.XamlTypeInfoProvider.Activate_250_ShellPage() at Natsurainko.FluentLauncher.Natsurainko_FluentLauncher_XamlTypeInfo.XamlUserType.ActivateInstance() at ABI.Microsoft.UI.Xaml.Markup.IXamlType.Do_Abi_ActivateInstance_13(IntPtr thisPtr, IntPtr* result) --- End of stack trace from previous location --- at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|20_0(Int32 hr) at ABI.Microsoft.UI.Xaml.Controls.IFrameMethods.Navigate(IObjectReference _obj, Type sourcePageType, Object parameter) at Microsoft.UI.Xaml.Controls.Frame.Navigate(Type sourcePageType, Object parameter) at Natsurainko.FluentLauncher.Services.UI.Navigation.NavigationService.NavigateTo(String key, Object parameter) at Natsurainko.FluentLauncher.Views.MainWindow.WindowEx_Activated(Object sender, WindowActivatedEventArgs args) at WinRT._EventSource_global__Windows_Foundation_TypedEventHandler_object__global__Microsoft_UI_Xaml_WindowActivatedEventArgs_.EventState.<GetEventInvoke>b__1_0(Object sender, WindowActivatedEventArgs args) at ABI.Windows.Foundation.TypedEventHandler2.Do_Abi_Invoke[TSenderAbi,TResultAbi](Void* thisPtr, TSenderAbi sender, TResultAbi args)

Steps to reproduce the bug

1

Expected behavior

1

Environment

1

Attachment

1

natsurainko commented 11 months ago

具体是怎么操作的呢

natsurainko commented 8 months ago

与 #196 重复