remove redundant check preventing checkbox theme style to apply hover_pressed

This commit is contained in:
Hana 2022-07-02 20:53:02 +02:00 committed by GitHub
parent a9920ae54f
commit 36ff8962cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ void Button::_notification(int p_what) {
}
} break;
case DRAW_HOVER_PRESSED: {
if (has_stylebox("hover_pressed") && has_stylebox_override("hover_pressed")) {
if (has_stylebox("hover_pressed")) {
style = get_stylebox("hover_pressed");
if (!flat) {
style->draw(ci, Rect2(Point2(0, 0), size));