force PNG checkbox

This commit is contained in:
darodi committed 2023-01-14 00:27:53 +01:00
1 parent b39076a9f4
commit 8035dedae8
3 files changed
+12 -6

No files matched your search

+3 -1
View File
@@ -282,7 +282,9 @@ class WorkerThread(QtCore.QThread):
options.forcecolor = True
if GUI.disableProcessingBox.isChecked():
options.noprocessing = True
if GUI.mozJpegBox.isChecked():
if GUI.mozJpegBox.checkState() == 1:
options.forcepng = True
elif GUI.mozJpegBox.checkState() == 2:
options.mozjpeg = True
if GUI.currentMode > 2:
options.customwidth = str(GUI.widthBox.value())