mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-30 12:23:39 +01:00
fix some warnings
This commit is contained in:
parent
ce5ee71c91
commit
2e2feb144f
9 changed files with 40 additions and 34 deletions
|
|
@ -72,6 +72,8 @@ internal class AutoUpdateManager : IServiceType
|
|||
|
||||
private readonly IConsoleVariable<bool> isDryRun;
|
||||
|
||||
private readonly Task<DalamudLinkPayload> openInstallerWindowLinkTask;
|
||||
|
||||
private DateTime? loginTime;
|
||||
private DateTime? nextUpdateCheckTime;
|
||||
private DateTime? unblockedSince;
|
||||
|
|
@ -82,8 +84,6 @@ internal class AutoUpdateManager : IServiceType
|
|||
|
||||
private Task? autoUpdateTask;
|
||||
|
||||
private readonly Task<DalamudLinkPayload> openInstallerWindowLink;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="AutoUpdateManager"/> class.
|
||||
/// </summary>
|
||||
|
|
@ -99,7 +99,7 @@ internal class AutoUpdateManager : IServiceType
|
|||
});
|
||||
Service<Framework>.GetAsync().ContinueWith(t => { t.Result.Update += this.OnUpdate; });
|
||||
|
||||
this.openInstallerWindowLink =
|
||||
this.openInstallerWindowLinkTask =
|
||||
Service<ChatGui>.GetAsync().ContinueWith(
|
||||
chatGuiTask => chatGuiTask.Result.AddChatLinkHandler(
|
||||
"Dalamud",
|
||||
|
|
@ -109,7 +109,6 @@ internal class AutoUpdateManager : IServiceType
|
|||
Service<DalamudInterface>.GetNullable()?.OpenPluginInstallerTo(PluginInstallerOpenKind.InstalledPlugins);
|
||||
}));
|
||||
|
||||
|
||||
this.isDryRun = console.AddVariable("dalamud.autoupdate.dry_run", "Simulate updates instead", false);
|
||||
console.AddCommand("dalamud.autoupdate.trigger_login", "Trigger a login event", () =>
|
||||
{
|
||||
|
|
@ -441,7 +440,7 @@ internal class AutoUpdateManager : IServiceType
|
|||
new TextPayload(Locs.NotificationContentUpdatesAvailableMinimized(updatablePlugins.Count)),
|
||||
new TextPayload(" ["),
|
||||
new UIForegroundPayload(500),
|
||||
this.openInstallerWindowLink.Result,
|
||||
this.openInstallerWindowLinkTask.Result,
|
||||
new TextPayload(Loc.Localize("DalamudInstallerHelp", "Open the plugin installer")),
|
||||
RawPayload.LinkTerminator,
|
||||
new UIForegroundPayload(0),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue