mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Don't change the hand cursor for StyledButton if the widget is disabled
This commit is contained in:
parent
269ff609b7
commit
8f66e75cb0
@ -31,8 +31,11 @@ StyledButton::StyledButton(skin::Style* style)
|
||||
bool StyledButton::onProcessMessage(Message* msg) {
|
||||
switch (msg->type()) {
|
||||
case kSetCursorMessage:
|
||||
ui::set_mouse_cursor(kHandCursor);
|
||||
return true;
|
||||
if (isEnabled()) {
|
||||
ui::set_mouse_cursor(kHandCursor);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
return Button::onProcessMessage(msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user