Draft: handle reading defaults from PrefCheckableGroupBox

This commit is contained in:
Furgo
2025-06-10 23:56:36 +02:00
parent 3d02973951
commit cf5cf2babf

View File

@@ -696,6 +696,11 @@ def _get_param_dictionary():
elif att_class == "Gui::PrefFontBox":
path, entry, value = _param_from_PrefFontBox(widget)
typ = "string"
elif att_class == "Gui::PrefCheckableGroupBox":
# It's a boolean preference, so we can reuse the parsing logic
# from _param_from_PrefCheckBox, which looks for <property name="checked">.
path, entry, value = _param_from_PrefCheckBox(widget)
typ = "bool"
if path is not None:
if path in param_dict: