Skip to content

Commit

Permalink
Add: Refine canvas reset behavior to prevent unintended blank canvas …
Browse files Browse the repository at this point in the history
…state (#321)
  • Loading branch information
CVHub520 committed Mar 21, 2024
1 parent 6f4447a commit 59c8956
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions anylabeling/views/labeling/label_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -4282,7 +4282,11 @@ def delete_file(self):
item = self.file_list_widget.currentItem()
item.setCheckState(Qt.Unchecked)

filename = self.filename
self.reset_state()
self.filename = filename
if self.filename:
self.load_file(self.filename)

def delete_image_file(self):
if len(self.image_list) <= 0:
Expand Down

0 comments on commit 59c8956

Please sign in to comment.