mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
pi: "update all plugins" button must update banned plugins
This commit is contained in:
parent
1c03242aa9
commit
c91e24cb58
3 changed files with 4 additions and 7 deletions
|
|
@ -726,7 +726,7 @@ internal class PluginInstallerWindow : Window, IDisposable
|
||||||
this.loadingIndicatorKind = LoadingIndicatorKind.UpdatingAll;
|
this.loadingIndicatorKind = LoadingIndicatorKind.UpdatingAll;
|
||||||
|
|
||||||
var toUpdate = this.pluginListUpdatable
|
var toUpdate = this.pluginListUpdatable
|
||||||
.Where(x => x.InstalledPlugin.IsLoaded)
|
.Where(x => x.InstalledPlugin.IsWantedByAnyProfile)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
Task.Run(() => pluginManager.UpdatePluginsAsync(toUpdate, false))
|
Task.Run(() => pluginManager.UpdatePluginsAsync(toUpdate, false))
|
||||||
|
|
|
||||||
|
|
@ -274,10 +274,10 @@ internal class AutoUpdateManager : IServiceType
|
||||||
});
|
});
|
||||||
|
|
||||||
var progress = new Progress<PluginManager.PluginUpdateProgress>();
|
var progress = new Progress<PluginManager.PluginUpdateProgress>();
|
||||||
progress.ProgressChanged += (_, progress) =>
|
progress.ProgressChanged += (_, updateProgress) =>
|
||||||
{
|
{
|
||||||
notification.Content = Locs.NotificationContentUpdating(progress.CurrentPluginManifest.Name);
|
notification.Content = Locs.NotificationContentUpdating(updateProgress.CurrentPluginManifest.Name);
|
||||||
notification.Progress = (float)progress.PluginsProcessed / progress.TotalPlugins;
|
notification.Progress = (float)updateProgress.PluginsProcessed / updateProgress.TotalPlugins;
|
||||||
};
|
};
|
||||||
|
|
||||||
var pluginStates = await this.pluginManager.UpdatePluginsAsync(updatablePlugins, this.isDryRun.Value, true, progress);
|
var pluginStates = await this.pluginManager.UpdatePluginsAsync(updatablePlugins, this.isDryRun.Value, true, progress);
|
||||||
|
|
|
||||||
|
|
@ -1003,9 +1003,6 @@ internal class PluginManager : IInternalDisposableService
|
||||||
if (plugin.InstalledPlugin.IsDev)
|
if (plugin.InstalledPlugin.IsDev)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!plugin.InstalledPlugin.IsWantedByAnyProfile)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (plugin.InstalledPlugin.Manifest.ScheduledForDeletion)
|
if (plugin.InstalledPlugin.Manifest.ScheduledForDeletion)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue