mirror of
https://github.com/wassname/sloth.git
synced 2026-07-08 03:30:44 +08:00
Make sure current image is visble in TreeView when image is changed
This commit is contained in:
@@ -61,6 +61,7 @@ class MainWindow(QMainWindow):
|
||||
def onCurrentImageChanged(self):
|
||||
new_image = self.labeltool.currentImage()
|
||||
self.scene.setCurrentImage(new_image)
|
||||
self.treeview.scrollTo(new_image.index())
|
||||
|
||||
img = self.labeltool.getImage(new_image)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user