Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/UniGetUI/AutoUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -262,11 +263,12 @@ private static async Task<bool> 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())
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This approach doesn't work. You can test it by decreasing the build number on CoreData.cs

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I'll look into it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't even get UniGetUI to delay updating until the MainWindow is opened, it's updating as soon as it starts right now. I honestly have no idea how to fix that, and while this would be a great feature to have I have no idea to debug why it isn't working, so I will close this PR and accept defeat.

{
await Task.Delay(100);
}
Expand Down
Loading