From 51ba320dfc1523d9da31e854650544d4c5f0c62f Mon Sep 17 00:00:00 2001 From: Yes Date: Sat, 7 Dec 2024 23:23:31 -0300 Subject: [PATCH] BUGFIXED : correctly display the current image index in the file dock window title (#123) bugfixed : Wrong index value afler delete image Co-authored-by: aboutibm@163.com <7p=e763wN3A6k+[C> --- PPOCRLabel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PPOCRLabel.py b/PPOCRLabel.py index c806355..d6b52c4 100644 --- a/PPOCRLabel.py +++ b/PPOCRLabel.py @@ -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):