mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
fix warning
This commit is contained in:
parent
a8a3c2a3c7
commit
2ea96eaf83
@ -170,8 +170,6 @@ void lv_btn_toggle(lv_obj_t * btn)
|
||||
{
|
||||
LV_ASSERT_OBJ(btn, LV_OBJX_NAME);
|
||||
|
||||
|
||||
|
||||
if(lv_obj_get_state(btn, LV_BTN_PART_MAIN) & LV_STATE_CHECKED) {
|
||||
lv_obj_clear_state(btn, LV_STATE_CHECKED);
|
||||
}
|
||||
@ -195,7 +193,6 @@ lv_btn_state_t lv_btn_get_state(const lv_obj_t * btn)
|
||||
LV_ASSERT_OBJ(btn, LV_OBJX_NAME);
|
||||
|
||||
lv_state_t obj_state = lv_obj_get_state(btn, LV_BTN_PART_MAIN);
|
||||
lv_btn_state_t btn_state = 0;
|
||||
|
||||
if(obj_state & LV_STATE_DISABLED) {
|
||||
if(obj_state & LV_STATE_CHECKED) return LV_BTN_STATE_CHECKED_DISABLED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user