Skip to content

Commit 226a47b

Browse files
committed
WIP refactoring inference
1 parent e462c4e commit 226a47b

File tree

3 files changed

+802
-201
lines changed

3 files changed

+802
-201
lines changed

napari_cellseg3d/interface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,9 @@ def set_required(self, is_required):
335335
"""If set to True, will be colored red if incorrectly set"""
336336
if is_required:
337337
self.text_field.textChanged.connect(self.check_ready)
338-
self.check_ready()
338+
else:
339+
self.text_field.textChanged.disconnect(self.check_ready)
340+
self.check_ready()
339341

340342
def update_field_color(self, color: str):
341343
"""Updates the background of the text field"""

0 commit comments

Comments
 (0)