File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -229,10 +229,6 @@ def _valid_layer_selection(self) -> bool:
229
229
"""
230
230
Return `True` if layer selection is valid.
231
231
"""
232
- print (f"{ self .n_selected_layers = } " )
233
- print (f"{ self .n_layers_input = } " )
234
- print (f"{ self .layers = } " )
235
- print (f"{ self .input_layer_types = } " )
236
232
return self .n_selected_layers in self .n_layers_input and all (
237
233
isinstance (layer , self .input_layer_types ) for layer in self .layers
238
234
)
@@ -243,8 +239,8 @@ def _update_layers(self, event: napari.utils.events.Event) -> None:
243
239
"""
244
240
self .layers = list (self .viewer .layers .selection )
245
241
self .layers = sorted (self .layers , key = lambda layer : layer .name )
242
+ self .on_update_layers ()
246
243
if self ._valid_layer_selection :
247
- self .on_update_layers ()
248
244
self ._draw ()
249
245
250
246
def _draw (self ) -> None :
@@ -280,7 +276,6 @@ def on_update_layers(self) -> None:
280
276
Called when the selected layers are updated.
281
277
282
278
This is a no-op, and is intended for derived classes to override.
283
- It is only called if a selected layer is one of the input layer types.
284
279
"""
285
280
286
281
You can’t perform that action at this time.
0 commit comments