Skip to content

Commit 7170a60

Browse files
SettingActivity: add support for default_value
1 parent 6d0823d commit 7170a60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal_filesystem/lib/mpos/ui/setting_activity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def onCreate(self):
4646

4747
ui = setting.get("ui")
4848
ui_options = setting.get("ui_options")
49-
current_setting = self.prefs.get_string(setting["key"])
49+
current_setting = self.prefs.get_string(setting["key"], setting.get("default_value"))
5050
if ui and ui == "radiobuttons" and ui_options:
5151
# Create container for radio buttons
5252
self.radio_container = lv.obj(settings_screen_detail)

0 commit comments

Comments
 (0)