fix: button hover state-change not visible in some cases (#5077)
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
- Bugfix: Show user text input within watch streak notices. (#5029)
|
||||
- Bugfix: Fixed avatar in usercard and moderation button triggering when releasing the mouse outside their area. (#5052)
|
||||
- Bugfix: Fixed moderator-only topics being subscribed to for non-moderators. (#5056)
|
||||
- Bugfix: Fixed a bug where buttons would remain in a hovered state after leaving them. (#5077)
|
||||
- Dev: Run miniaudio in a separate thread, and simplify it to not manage the device ourselves. There's a chance the simplification is a bad idea. (#4978)
|
||||
- Dev: Change clang-format from v14 to v16. (#4929)
|
||||
- Dev: Fixed UTF16 encoding of `modes` file for the installer. (#4791)
|
||||
|
||||
@@ -222,12 +222,20 @@ void Button::enterEvent(QEnterEvent * /*event*/)
|
||||
void Button::enterEvent(QEvent * /*event*/)
|
||||
#endif
|
||||
{
|
||||
this->mouseOver_ = true;
|
||||
if (!this->mouseOver_)
|
||||
{
|
||||
this->mouseOver_ = true;
|
||||
this->update();
|
||||
}
|
||||
}
|
||||
|
||||
void Button::leaveEvent(QEvent *)
|
||||
void Button::leaveEvent(QEvent * /*event*/)
|
||||
{
|
||||
this->mouseOver_ = false;
|
||||
if (this->mouseOver_)
|
||||
{
|
||||
this->mouseOver_ = false;
|
||||
this->update();
|
||||
}
|
||||
}
|
||||
|
||||
void Button::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user