Merge pull request #1726 from upbeat27/lv_btnmatrix_set_one_check_fix
Fix `lv_btnmatrix_set_one_check` not forcing one button to be checked
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
- Fix crash if `lv_table_set_col_cnt` is called before `lv_table_set_row_cnt` for the first time
|
- Fix crash if `lv_table_set_col_cnt` is called before `lv_table_set_row_cnt` for the first time
|
||||||
- Fix overflow in large image transformations
|
- Fix overflow in large image transformations
|
||||||
- Limit extra button click area of button matrix's buttons. With large paddings it was counter intuitive. (Gaps are mapped to button when clicked).
|
- Limit extra button click area of button matrix's buttons. With large paddings it was counter intuitive. (Gaps are mapped to button when clicked).
|
||||||
|
- Fix `lv_btnmatrix_set_one_check` not forcing exactly one button to be checked
|
||||||
|
|
||||||
## v7.3.0 (04.08.2020)
|
## v7.3.0 (04.08.2020)
|
||||||
|
|
||||||
|
|||||||
@@ -918,7 +918,7 @@ static lv_res_t lv_btnmatrix_signal(lv_obj_t * btnm, lv_signal_t sign, void * pa
|
|||||||
/*Toggle the button if enabled*/
|
/*Toggle the button if enabled*/
|
||||||
if(button_is_tgl_enabled(ext->ctrl_bits[ext->btn_id_pr]) &&
|
if(button_is_tgl_enabled(ext->ctrl_bits[ext->btn_id_pr]) &&
|
||||||
!button_is_inactive(ext->ctrl_bits[ext->btn_id_pr])) {
|
!button_is_inactive(ext->ctrl_bits[ext->btn_id_pr])) {
|
||||||
if(button_get_tgl_state(ext->ctrl_bits[ext->btn_id_pr])) {
|
if(button_get_tgl_state(ext->ctrl_bits[ext->btn_id_pr]) && !ext->one_check) {
|
||||||
ext->ctrl_bits[ext->btn_id_pr] &= (~LV_BTNMATRIX_CTRL_CHECK_STATE);
|
ext->ctrl_bits[ext->btn_id_pr] &= (~LV_BTNMATRIX_CTRL_CHECK_STATE);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user