Skip to content

Commit 45de701

Browse files
authored
Fix a failure to reveal a key when all section keys have dependancies (#26)
Given the follownig scenario. "mysection": { "type": "section", "title": "MyTitle", "keys": [ "key1_revealed_on_condition_false", "key2_revealed_on_condition_false", "key3_revealed_on_condition_true", "key4_revealed_on_condition_true" ] }, If the condition is "true" then keys 3 & 4 should be shown, but the bug causes key4 not to get drawn. If the condition is "false" then keys 1 & 2 are shown correctly. If a fifth key is added that does not define a dependancy then the problem does not occur.
1 parent e72db3a commit 45de701

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎xapp/SettingsWidgets.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ def update_always_show_state(self):
251251

252252
def check_reveal_state(self, *args):
253253
for revealer in self.revealers:
254-
if revealer.props.child_revealed:
254+
if revealer.props.reveal_child or revealer.props.child_revealed:
255255
self.box.show_all()
256256
self.frame.show()
257257
return

0 commit comments

Comments
 (0)