Haspmota dropdown options (#21203)

* Fix HASPmota dropdown class "options" attribute

* More fix
This commit is contained in:
s-hadinger 2024-04-16 22:43:35 +02:00 committed by GitHub
parent 7dc9e6e0ce
commit 99b140512e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 7 deletions

View File

@ -1419,7 +1419,7 @@ class lvh_dropdown : lvh_obj
def set_val(t)
self._val = t
self._lv_obj.set_selected(t, 0) # add second parameter - no animation
self._lv_obj.set_selected(t)
end
def get_val()
return self._lv_obj.get_selected()

View File

@ -6887,22 +6887,20 @@ be_local_closure(lvh_dropdown_set_val, /* name */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[ 4]) { /* constants */
( &(const bvalue[ 3]) { /* constants */
/* K0 */ be_nested_str_weak(_val),
/* K1 */ be_nested_str_weak(_lv_obj),
/* K2 */ be_nested_str_weak(set_selected),
/* K3 */ be_const_int(0),
}),
be_str_weak(set_val),
&be_const_str_solidified,
( &(const binstruction[ 7]) { /* code */
( &(const binstruction[ 6]) { /* code */
0x90020001, // 0000 SETMBR R0 K0 R1
0x88080101, // 0001 GETMBR R2 R0 K1
0x8C080502, // 0002 GETMET R2 R2 K2
0x5C100200, // 0003 MOVE R4 R1
0x58140003, // 0004 LDCONST R5 K3
0x7C080600, // 0005 CALL R2 3
0x80000000, // 0006 RET 0
0x7C080400, // 0004 CALL R2 2
0x80000000, // 0005 RET 0
})
)
);