mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-12 14:43:54 +00:00
Move many widget classes to lib_ui.
This commit is contained in:
@@ -111,12 +111,12 @@ void AbstractButton::setOver(bool over, StateChangeSource source) {
|
||||
if (over && !(_state & StateFlag::Over)) {
|
||||
auto was = _state;
|
||||
_state |= StateFlag::Over;
|
||||
RegisterLeaveSubscription(this);
|
||||
Integration::Instance().registerLeaveSubscription(this);
|
||||
onStateChanged(was, source);
|
||||
} else if (!over && (_state & StateFlag::Over)) {
|
||||
auto was = _state;
|
||||
_state &= ~State(StateFlag::Over);
|
||||
UnregisterLeaveSubscription(this);
|
||||
Integration::Instance().unregisterLeaveSubscription(this);
|
||||
onStateChanged(was, source);
|
||||
}
|
||||
updateCursor();
|
||||
|
||||
Reference in New Issue
Block a user