Skip to content

Commit 0cb8128

Browse files
committed
Silhouette: Auto-commit on changing checkbox state
1 parent ebca371 commit 0cb8128

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Orange/widgets/visualize/owsilhouetteplot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ def __init__(self):
112112

113113
gui.separator(self.buttonsArea)
114114
box = gui.vBox(self.buttonsArea, "Output")
115-
gui.checkBox(box, self, "add_scores", "Add silhouette scores",)
115+
# Thunk the call to commit to call conditional commit
116+
gui.checkBox(box, self, "add_scores", "Add silhouette scores",
117+
callback=lambda: self.commit())
116118
gui.auto_commit(
117119
box, self, "auto_commit", "Commit",
118120
auto_label="Auto commit", box=False)

0 commit comments

Comments
 (0)