Calling GameTooltip:SetHyperlink twice with the same link causes it to hide itself, for reasons unknown.
Compare first, do nothing if it's already showing this.
I wasn't able to easily test the fallthrough case where we're passing an unknown item fragment in -- there might still be a flash when the tooltip would otherwise read "Retrieving Item Information...". I'm not sure what :GetItem() would return in that case to compare though, we'd need more specific tracking of when we show/hide the tooltip and what we asked it to display.
Calling
GameTooltip:SetHyperlink
twice with the same link causes it to hide itself, for reasons unknown.Compare first, do nothing if it's already showing this.
I wasn't able to easily test the fallthrough case where we're passing an unknown item fragment in -- there might still be a flash when the tooltip would otherwise read "Retrieving Item Information...". I'm not sure what
:GetItem()
would return in that case to compare though, we'd need more specific tracking of when we show/hide the tooltip and what we asked it to display.