mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-01 21:33:39 +01:00
fix: Make auto-update work again, the lazy way (#1592)
* fix: Make auto-update work again, the lazy way. - Move auto-update to run on the first `Notice` message for parity with the welcome message. - Add some logging in a few critical places to make things nicer. * fix overzealous IDE complaints * code-review comments - Remove stray imports that the IDE included - Remove fixme to move auto-updates (for now) * Lazy retry auto-update
This commit is contained in:
parent
3c7900ea13
commit
86b7c29e94
3 changed files with 44 additions and 12 deletions
|
|
@ -958,7 +958,7 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
autoUpdate ? PluginListInvalidationKind.AutoUpdate : PluginListInvalidationKind.Update,
|
||||
updatedList.Select(x => x.InternalName));
|
||||
|
||||
Log.Information("Plugin update OK.");
|
||||
Log.Information("Plugin update OK. {updateCount} plugins updated.", updatedList.Length);
|
||||
|
||||
return updatedList;
|
||||
}
|
||||
|
|
@ -1581,6 +1581,8 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
|
||||
private void DetectAvailablePluginUpdates()
|
||||
{
|
||||
Log.Debug("Starting plugin update check...");
|
||||
|
||||
lock (this.pluginListLock)
|
||||
{
|
||||
this.updatablePluginsList.Clear();
|
||||
|
|
@ -1615,10 +1617,12 @@ internal partial class PluginManager : IDisposable, IServiceType
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Log.Debug("Update check found {updateCount} available updates.", this.updatablePluginsList.Count);
|
||||
}
|
||||
|
||||
private void NotifyAvailablePluginsChanged()
|
||||
{
|
||||
{
|
||||
this.DetectAvailablePluginUpdates();
|
||||
|
||||
this.OnAvailablePluginsChanged?.InvokeSafely();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue