mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-29 01:19:44 +00:00
Avoid freezing placeholder notification text (#6843)
This commit is contained in:
@@ -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) {
|
||||
|
||||
+2
@@ -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();
|
||||
|
||||
+2
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user