From 5f51ca22e0ae8e884b8324fe7add13dc2323f803 Mon Sep 17 00:00:00 2001 From: goat Date: Mon, 17 Jun 2024 19:23:55 +0200 Subject: [PATCH] autoupdate: consider notification dismissal time as last check time --- Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs b/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs index 107dd0979..09ab22959 100644 --- a/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs +++ b/Dalamud/Plugin/Internal/AutoUpdate/AutoUpdateManager.cs @@ -228,7 +228,11 @@ private IActiveNotification GetBaseNotification(Notification notification) throw new InvalidOperationException("Already showing a notification"); this.updateNotification = this.notificationManager.AddNotification(notification); - this.updateNotification.Dismiss += _ => this.updateNotification = null; + this.updateNotification.Dismiss += _ => + { + this.updateNotification = null; + this.lastUpdateCheckTime = DateTime.Now; + }; return this.updateNotification!; } @@ -444,7 +448,7 @@ public static string NotificationContentUpdatesAvailable(int numUpdates) => string.Format(Loc.Localize("AutoUpdateUpdatesAvailableContent", "There are {0} plugins that can be updated."), numUpdates); public static string NotificationContentUpdatesAvailableMinimized(int numUpdates) - => string.Format(Loc.Localize("AutoUpdateUpdatesAvailableContent", "{0} updates available."), numUpdates); + => string.Format(Loc.Localize("AutoUpdateUpdatesAvailableContent", "{0} plugin updates"), numUpdates); public static string NotificationContentPreparingToUpdate(int numPlugins) => string.Format(Loc.Localize("AutoUpdatePreparingToUpdate", "Preparing to update {0} plugins..."), numPlugins);