mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-19 12:49:02 +00:00
Correctly compare and update title of ASButtonNode
This commit is contained in:
parent
6b44b5ac05
commit
4b331be1e8
@ -184,7 +184,7 @@
|
||||
newTitle = _normalAttributedTitle;
|
||||
}
|
||||
|
||||
if ((_titleNode != nil || newTitle.length > 0) && newTitle != self.titleNode.attributedString) {
|
||||
if ((_titleNode != nil || newTitle.length > 0) && [self.titleNode.attributedString isEqualToAttributedString:newTitle] == NO) {
|
||||
_titleNode.attributedString = newTitle;
|
||||
self.accessibilityLabel = _titleNode.accessibilityLabel;
|
||||
[self setNeedsLayout];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user