From 75aa17df117cb8831dd14d0b264db2e81278db15 Mon Sep 17 00:00:00 2001 From: MBucari Date: Thu, 20 Nov 2025 22:35:13 -0700 Subject: [PATCH] Fix winforms STAThread on main --- Source/LibationWinForms/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/LibationWinForms/Program.cs b/Source/LibationWinForms/Program.cs index 8c123f33..8862a63e 100644 --- a/Source/LibationWinForms/Program.cs +++ b/Source/LibationWinForms/Program.cs @@ -21,7 +21,7 @@ namespace LibationWinForms private static Form1 form1; [STAThread] - static async Task Main() + static void Main() { Task> libraryLoadTask; @@ -46,7 +46,7 @@ namespace LibationWinForms LibationUiBase.Forms.MessageBoxBase.ShowAsyncImpl = ShowMessageBox; // do this as soon as possible (post-config) - await RunSetupIfNeededAsync(config); + RunSetupIfNeededAsync(config).Wait(); // most migrations go in here LibationScaffolding.RunPostConfigMigrations(config);