GUI: Remove highlighting when button widget is pressed
Without this, buttons would stay highlighted after being un-pressed. Fixes #7094.
This commit is contained in:
parent
25c380f92e
commit
92b7a86e1f
1 changed files with 1 additions and 0 deletions
|
@ -356,6 +356,7 @@ void ButtonWidget::handleTickle() {
|
|||
void ButtonWidget::setPressedState() {
|
||||
wantTickle(true);
|
||||
setFlags(WIDGET_PRESSED);
|
||||
clearFlags(WIDGET_HILITED);
|
||||
draw();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue