提交 8f6f8ed0 编写于 作者: H howayi 提交者: Kentaro Wada

fix slider_contrast repeated with brightness

上级 5b9be06e
......@@ -1384,11 +1384,11 @@ class MainWindow(QtWidgets.QMainWindow):
if brightness is not None:
dialog.slider_brightness.setValue(brightness)
if contrast is not None:
dialog.slider_brightness.setValue(contrast)
dialog.slider_contrast.setValue(contrast)
dialog.exec_()
brightness = dialog.slider_brightness.value()
contrast = dialog.slider_brightness.value()
contrast = dialog.slider_contrast.value()
self.brightnessContrast_values[self.filename] = (brightness, contrast)
def togglePolygons(self, value):
......@@ -1514,7 +1514,7 @@ class MainWindow(QtWidgets.QMainWindow):
if brightness is not None:
dialog.slider_brightness.setValue(brightness)
if contrast is not None:
dialog.slider_brightness.setValue(contrast)
dialog.slider_contrast.setValue(contrast)
self.brightnessContrast_values[self.filename] = (brightness, contrast)
if brightness is not None or contrast is not None:
dialog.onNewValue(None)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册