diff --git a/src/UniGetUI/AutoUpdater.cs b/src/UniGetUI/AutoUpdater.cs index b3bbf58e60..129238bd6b 100644 --- a/src/UniGetUI/AutoUpdater.cs +++ b/src/UniGetUI/AutoUpdater.cs @@ -9,6 +9,7 @@ using UniGetUI.Core.Logging; using UniGetUI.Core.SettingsEngine; using UniGetUI.Core.Tools; +using UniGetUI.Interface; using UniGetUI.Interface.Enums; namespace UniGetUI; @@ -262,11 +263,12 @@ private static async Task PrepairToLaunchInstaller(string installerLocatio } else { - Logger.Debug("Waiting for mainWindow to be closed or for user to trigger the update from the notification..."); + Logger.Debug("Waiting for mainWindow to be closed, operations to complete, or for user to trigger the update from the notification..."); while ( !ReleaseLockForAutoupdate_Window && !ReleaseLockForAutoupdate_Notification && - !ReleaseLockForAutoupdate_UpdateBanner) + !ReleaseLockForAutoupdate_UpdateBanner && + MainApp.Operations.AreThereRunningOperations()) { await Task.Delay(100); }