mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
autoupdate: consider notification dismissal time as last check time
This commit is contained in:
parent
c91e24cb58
commit
5f51ca22e0
1 changed files with 6 additions and 2 deletions
|
|
@ -228,7 +228,11 @@ internal class AutoUpdateManager : IServiceType
|
|||
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 @@ internal class AutoUpdateManager : IServiceType
|
|||
=> 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue