Feedback
Button.Enabled can return its previous value after assignment
- Status
- Fixed
- Fixed in
- v26.10.4
- Area
- desktop
- Source discussion
- https://forum.objo.dev/d/1397-timing-issue-of-buttonenabled-property
- Last updated
- 2026-10-30
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
In desktop apps, reading a button's Enabled property immediately after assigning it can return its previous value. This can leave another control or menu item in the wrong state when its enabled state is copied from the button, and can make a status label or window title report the opposite of the button's actual state.
An assignment to Enabled should be observable by the next statement, without a delay, an extra click, or repeating the condition.