mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 20:24:16 +01:00
formatting
This commit is contained in:
parent
dd92824361
commit
9db492d26d
2 changed files with 17 additions and 12 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System.Numerics;
|
||||
|
||||
using Dalamud.Configuration.Internal;
|
||||
using Dalamud.Game.ClientState.Keys;
|
||||
using ImGuiNET;
|
||||
|
|
|
|||
|
|
@ -171,8 +171,11 @@ namespace Dalamud.Plugin.Internal
|
|||
|
||||
/// <summary>
|
||||
/// Load all plugins, sorted by priority. Any plugins with no explicit definition file or a negative priority
|
||||
/// are loaded asynchronously. Should only be called during Dalamud startup.
|
||||
/// are loaded asynchronously.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This should only be called during Dalamud startup.
|
||||
/// </remarks>
|
||||
public void LoadAllPlugins()
|
||||
{
|
||||
if (this.SafeMode)
|
||||
|
|
@ -267,8 +270,11 @@ namespace Dalamud.Plugin.Internal
|
|||
|
||||
var asyncPlugins = pluginDefs.Where(def => def.Manifest == null || def.Manifest.LoadPriority <= 0);
|
||||
Task.Run(() => LoadPlugins(asyncPlugins))
|
||||
.ContinueWith(task => this.PluginsReady = true)
|
||||
.ContinueWith(task => this.NotifyInstalledPluginsChanged());
|
||||
.ContinueWith(task =>
|
||||
{
|
||||
this.PluginsReady = true;
|
||||
this.NotifyInstalledPluginsChanged();
|
||||
});
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -727,24 +733,22 @@ namespace Dalamud.Plugin.Internal
|
|||
var plugin = metadata.InstalledPlugin;
|
||||
|
||||
// Can't update that!
|
||||
if (plugin is LocalDevPlugin)
|
||||
if (plugin.IsDev)
|
||||
return null;
|
||||
|
||||
var updateStatus = new PluginUpdateStatus
|
||||
{
|
||||
InternalName = plugin.Manifest.InternalName,
|
||||
Name = plugin.Manifest.Name,
|
||||
Version = metadata.UseTesting ? metadata.UpdateManifest.TestingAssemblyVersion : metadata.UpdateManifest.AssemblyVersion,
|
||||
Version = metadata.UseTesting
|
||||
? metadata.UpdateManifest.TestingAssemblyVersion
|
||||
: metadata.UpdateManifest.AssemblyVersion,
|
||||
};
|
||||
|
||||
if (dryRun)
|
||||
{
|
||||
updateStatus.WasUpdated = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
updateStatus.WasUpdated = true;
|
||||
updateStatus.WasUpdated = true;
|
||||
|
||||
if (!dryRun)
|
||||
{
|
||||
// Unload if loaded
|
||||
if (plugin.State == PluginState.Loaded || plugin.State == PluginState.LoadError)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue