1
0
mirror of https://github.com/ciromattia/kcc synced 2026-04-13 04:19:11 +00:00

disable extra png options when png is not selected (#1289)

This commit is contained in:
Alex Xu
2026-04-11 19:32:49 -07:00
committed by GitHub
parent 61f3097be5
commit 8f4072bfab

View File

@@ -828,6 +828,14 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
if bad_format in current_format:
self.addMessage('Scribe PNG MOBI/EPUB has a lot of problems like blank pages/sections. Use JPG instead.', 'warning')
break
GUI.pngLegacyBox.setEnabled(True)
GUI.noQuantizeBox.setEnabled(True)
GUI.forcePngRgbBox.setEnabled(True)
else:
GUI.pngLegacyBox.setEnabled(False)
GUI.noQuantizeBox.setEnabled(False)
GUI.forcePngRgbBox.setEnabled(False)
def togglechunkSizeCheckBox(self, value):
GUI.chunkSizeWidget.setVisible(value)