Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update export table by registering notifyDirty inside handleNewDataset
  • Loading branch information
AryanK37 authored Apr 22, 2025
commit 2e91f70bcb3da61a403924733c61e503f39111b8
11 changes: 6 additions & 5 deletions ilastik/applets/dataExport/dataExportGui.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ def handleNewDataset(multislot, index):
multislot[index].notifyReady(bind(self.updateTableForSlot))
if multislot[index].ready():
self.updateTableForSlot(multislot[index])


@threadRoutedWithRouter(self.threadRouter)
def _update_export_path(slot):
self.updateTableForSlot(slot)

multislot[index].notifyDirty(bind(_update_export_path))
multislot[index].notifyUnready(self._updateExportButtons)
multislot[index].notifyReady(self._updateExportButtons)

Expand All @@ -150,10 +155,6 @@ def handleNewDataset(multislot, index):
if subslot.ready():
self.updateTableForSlot(subslot)

self.topLevelOperator.OutputFormat.notifyDirty(
lambda *args: [self.updateTableForSlot(slot) for slot in self.topLevelOperator.ExportPath]
)

@threadRoutedWithRouter(self.threadRouter)
def handleLaneRemoved(multislot, index, finalLength):
if self.batchOutputTableWidget.rowCount() <= finalLength:
Expand Down