Skip to content
Merged
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,15 @@ def addImageToContext(self):
self.changeViewLayout()
self.addImageDialog()
self.changeViewLayout(initialLayout) # Restore the layout
self.handleTaskChange(self.contextComboBox.currentIndex)

def removeImageFromContext(self):
imageToRemove = self.removeImageDialog()
if imageToRemove == -1:
return

self.contextLogic.removeExample(imageToRemove)
self.handleTaskChange(self.contextComboBox.currentIndex)

def addImageDialog(self):
# Create and handle the dialog to add an image to a context
Expand Down