#16354 closed bug (fixed)
Revert button needs to be clicked twice to activate after brightness was changed
Reported by: | accessays | Owned by: | axeld |
---|---|---|---|
Priority: | low | Milestone: | R1/beta3 |
Component: | Preferences/Screen | Version: | R1/Development |
Keywords: | brightness, screen, revert | Cc: | |
Blocked By: | Blocking: | ||
Platform: | x86-64 |
Description
In Screen Preferences, after changing brightness slider the Revert button needs to be clicked twice to disable it. Brightness is restored to its original value after the first click, but the Revert button continues being enabled.
Attachments (1)
Change History (6)
by , 5 years ago
Attachment: | revert_button_fix.patch added |
---|
comment:1 by , 5 years ago
Clicking Revert button ends up calling _UpdateActiveMode
which calls _UpdateControls
which calls _CheckApplyEnabled
, which enables or disables the Revert button. In message handler (for BUTTON_REVERT_MSG) _UpdateActiveMode
is called before brightness is reset, so Revert button stays enabled.
Attached patch is one way to fix that, by simply calling _UpdateActiveMode
after brightness has been reset.
comment:3 by , 5 years ago
https://review.haiku-os.org/c/haiku/+/2989
Took a while to set up Gerrit, hopefully correctly.
comment:5 by , 5 years ago
Milestone: | Unscheduled → R1/beta3 |
---|
Proposed fix