Fixed BUG: the image-slider won't change value when process fit window

pull/5560/head
HinGwenWoong 2022-02-24 22:16:34 +08:00
parent 9f69e97569
commit 48b15203d1
1 changed files with 1 additions and 0 deletions

View File

@ -1466,6 +1466,7 @@ class MainWindow(QMainWindow):
def adjustScale(self, initial=False):
value = self.scalers[self.FIT_WINDOW if initial else self.zoomMode]()
self.zoomWidget.setValue(int(100 * value))
self.imageSlider.setValue(self.zoomWidget.value()) # set zoom slider value
def scaleFitWindow(self):
"""Figure out the size of the pixmap in order to fit the main widget."""