Skip to content

Commit

Permalink
BUGFIXED : correctly display the current image index in the file dock…
Browse files Browse the repository at this point in the history
… window title (#123)

bugfixed : Wrong index value afler delete image

Co-authored-by: [email protected] <7p=e763wN3A6k+[C>
  • Loading branch information
yes-github authored Dec 8, 2024
1 parent 10a68bf commit 51ba320
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion PPOCRLabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2474,7 +2474,8 @@ def importDirImages(self, dirpath, isDelete=False):
fileListWidgetCurrentRow
) # set list index to first
self.fileDock.setWindowTitle(
self.fileListName + f" (1/{self.fileListWidget.count()})"
self.fileListName
+ f" ({fileListWidgetCurrentRow+1}/{self.fileListWidget.count()})"
) # show image count

def openPrevImg(self, _value=False):
Expand Down

0 comments on commit 51ba320

Please sign in to comment.