Merge pull request #1983 from tannewt/fix_group_subscr_delete
Fix Group subscr to detect delete correctly
This commit is contained in:
commit
69460b943b
|
@ -295,7 +295,7 @@ STATIC mp_obj_t group_subscr(mp_obj_t self_in, mp_obj_t index_obj, mp_obj_t valu
|
||||||
if (value == MP_OBJ_SENTINEL) {
|
if (value == MP_OBJ_SENTINEL) {
|
||||||
// load
|
// load
|
||||||
return common_hal_displayio_group_get(self, index);
|
return common_hal_displayio_group_get(self, index);
|
||||||
} else if (value == mp_const_none) {
|
} else if (value == MP_OBJ_NULL) {
|
||||||
common_hal_displayio_group_pop(self, index);
|
common_hal_displayio_group_pop(self, index);
|
||||||
} else {
|
} else {
|
||||||
common_hal_displayio_group_set(self, index, value);
|
common_hal_displayio_group_set(self, index, value);
|
||||||
|
|
Loading…
Reference in New Issue