Fix build

This commit is contained in:
Ali 2020-02-26 21:46:31 +04:00
parent 9948945f7b
commit e6b96f6cd4

View File

@ -280,14 +280,9 @@ private final class NavigationButtonItemNode: ImmediateTextNode {
} }
} }
public override var isEnabled: Bool { public var isEnabled: Bool = true {
get { didSet {
return super.isEnabled if self.isEnabled != oldValue {
}
set(value) {
if self.isEnabled != value {
super.isEnabled = value
self.attributedText = NSAttributedString(string: text, attributes: self.attributesForCurrentState()) self.attributedText = NSAttributedString(string: text, attributes: self.attributesForCurrentState())
} }
} }