Avoid freezing placeholder notification text (#6843)

This commit is contained in:
2026-05-31 18:43:50 -07:00
committed by GitHub
parent c1dbebb60b
commit 94a7f01b35
3 changed files with 6 additions and 1 deletions
@@ -95,7 +95,8 @@ namespace eagle {
}
var existingNote = _notes.FirstOrDefault(
n => n.Title == notification.Title &&
n => n.Title == notification.Title && !n.IsTextDynamic &&
!notification.IsTextDynamic &&
HeroListsMatch(n.DisplayedHeroes, notification.DisplayedHeroes));
if (existingNote == null) {
@@ -6,6 +6,8 @@ namespace eagle.Notifications {
using ProvinceId = Int32;
public class DynamicTextNotification : Notification, IDisposable {
public override bool IsTextDynamic => true;
private List<GeneratedTextListener> textListeners = new();
private string textTemplate;
private Dictionary<string, string> placeholderValues = new();
@@ -19,6 +19,8 @@ namespace eagle.Notifications {
public List<HeroView> DisplayedHeroes { get; }
public string BeastVisualName { get; }
public virtual bool IsTextDynamic => false;
private static List<HeroView> ListFromHeroViews(
HeroView firstHero = null,
HeroView secondHero = null,