diff --git a/DiscordChatExporter.Gui/Framework/ViewManager.cs b/DiscordChatExporter.Gui/Framework/ViewManager.cs index f4d14e95..9fb09266 100644 --- a/DiscordChatExporter.Gui/Framework/ViewManager.cs +++ b/DiscordChatExporter.Gui/Framework/ViewManager.cs @@ -29,15 +29,7 @@ public partial class ViewManager return null; view.DataContext ??= viewModel; - - if (view.IsInitialized) - { - _ = viewModel.InitializeAsync(); - } - else - { - view.Initialized += async (_, _) => await viewModel.InitializeAsync(); - } + view.Loaded += async (_, _) => await viewModel.InitializeAsync(); return view; }