From 865eaaefcb64c6b9709ce202dbd3d24ab241113f Mon Sep 17 00:00:00 2001 From: "aboutibm@163.com" <7p=e763wN3A6k+[C> Date: Sat, 7 Dec 2024 16:32:17 -0300 Subject: [PATCH] bugfixed : Wrong index value afler delete image --- 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):