GUI delete option checkBox (closes #458) (#488)

* gui/func: add delete button (closes ciromattia#458)

* Update KCC_ui.py

fix typo

* GUI delete option checkBox

---------

Co-authored-by: darodi <4682830+darodi@users.noreply.github.com>
This commit is contained in:
Constantin Hong
2023-03-02 23:38:27 +01:00
committed by GitHub
co-authored by darodi
parent 896c05a72f
commit 17206ddf8b
3 changed files with 25 additions and 5 deletions
+3
View File
@@ -294,6 +294,8 @@ class WorkerThread(QtCore.QThread):
options.maximizestrips = True
if GUI.disableProcessingBox.isChecked():
options.noprocessing = True
if GUI.deleteBox.isChecked():
options.delete = True
if GUI.mozJpegBox.checkState() == 1:
options.forcepng = True
elif GUI.mozJpegBox.checkState() == 2:
@@ -823,6 +825,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
'mozJpegBox': GUI.mozJpegBox.checkState(),
'widthBox': GUI.widthBox.value(),
'heightBox': GUI.heightBox.value(),
'deleteBox': GUI.deleteBox.value(),
'maximizeStrips': GUI.maximizeStrips.checkState(),
'gammaSlider': float(self.gammaValue) * 100})
self.settings.sync()