Skip to content

Commit

Permalink
Clear icon texture when not owned
Browse files Browse the repository at this point in the history
  • Loading branch information
Critical-Impact committed Jul 3, 2024
1 parent f670044 commit 5ec8130
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ internal void RemoveNonDalamudInvocations()
if (this.Icon is { } previousIcon && !IsOwnedByDalamud(previousIcon.GetType()))
this.Icon = null;

if (this.IconTexture is { } iconTexture && iconTexture.TryGetWrap(out var wrap, out _) && !IsOwnedByDalamud(wrap.GetType()))
this.IconTexture = null;

this.isInitiatorUnloaded = true;
this.UserDismissable = true;
this.ExtensionDurationSinceLastInterest = NotificationConstants.DefaultDuration;
Expand Down

0 comments on commit 5ec8130

Please sign in to comment.