You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Merge branch 'main' into camera-resolution
This commit is contained in:
+3
-2
@@ -1,9 +1,10 @@
|
||||
0.5.1
|
||||
=====
|
||||
- OSUpdate app: pause download when wifi is lost, resume when reconnected
|
||||
- Fri3d Camp 2024 Badge: workaround ADC2+WiFi conflict by temporarily disable WiFi to measure battery level
|
||||
- Fri3d Camp 2024 Badge: improve battery monitor calibration
|
||||
- Fri3d Camp 2024 Badge: improve battery monitor calibration to fix 0.1V delta
|
||||
- AppStore app: remove unnecessary scrollbar over publisher's name
|
||||
- OSUpdate app: pause download when wifi is lost, resume when reconnected
|
||||
- Settings app: fix un-checking of radio button
|
||||
|
||||
0.5.0
|
||||
=====
|
||||
|
||||
@@ -260,18 +260,18 @@ class SettingActivity(Activity):
|
||||
target_obj_state = target_obj.get_state()
|
||||
print(f"target_obj state {target_obj.get_text()} is {target_obj_state}")
|
||||
checked = target_obj_state & lv.STATE.CHECKED
|
||||
current_checkbox_index = target_obj.get_index()
|
||||
print(f"current_checkbox_index: {current_checkbox_index}")
|
||||
if not checked:
|
||||
print("it's not checked, nothing to do!")
|
||||
if self.active_radio_index == current_checkbox_index:
|
||||
print(f"unchecking {current_checkbox_index}")
|
||||
self.active_radio_index = -1 # nothing checked
|
||||
return
|
||||
else:
|
||||
new_checked = target_obj.get_index()
|
||||
print(f"new_checked: {new_checked}")
|
||||
if self.active_radio_index >= 0:
|
||||
if self.active_radio_index >= 0: # is there something to uncheck?
|
||||
old_checked = self.radio_container.get_child(self.active_radio_index)
|
||||
old_checked.remove_state(lv.STATE.CHECKED)
|
||||
new_checked_obj = self.radio_container.get_child(new_checked)
|
||||
new_checked_obj.add_state(lv.STATE.CHECKED)
|
||||
self.active_radio_index = new_checked
|
||||
self.active_radio_index = current_checkbox_index
|
||||
|
||||
def create_radio_button(self, parent, text, index):
|
||||
cb = lv.checkbox(parent)
|
||||
|
||||
Reference in New Issue
Block a user