File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1414import Orange .preprocess .discretize as disc
1515
1616from Orange .widgets import widget , gui , settings
17- from Orange .widgets .utils import itemmodels , vartype
17+ from Orange .widgets .utils import itemmodels , vartype , unique_everseen
1818from Orange .widgets .utils .widgetpreview import WidgetPreview
1919from Orange .widgets .utils .state_summary import format_summary_details
2020from Orange .widgets .widget import Input , Output
@@ -614,7 +614,14 @@ def _var_selection_changed(self, *_):
614614 self .copy_current_to_manual_button .setEnabled (
615615 len (indices ) == 1 and not isinstance (methods [0 ], Custom )
616616 )
617- mset = set (methods )
617+
618+ def key (method ):
619+ if isinstance (method , Default ):
620+ return Default , (None , )
621+ return type (method ), tuple (method )
622+
623+ mset = list (unique_everseen (methods , key = key ))
624+
618625 self .controlbox .setEnabled (len (mset ) > 0 )
619626 if len (mset ) == 1 :
620627 method = mset .pop ()
You can’t perform that action at this time.
0 commit comments