mirror of
https://github.com/ciromattia/kcc
synced 2026-05-11 02:02:19 +00:00
disable extra png options when png is not selected (#1289)
This commit is contained in:
@@ -828,6 +828,14 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
|
|||||||
if bad_format in current_format:
|
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')
|
self.addMessage('Scribe PNG MOBI/EPUB has a lot of problems like blank pages/sections. Use JPG instead.', 'warning')
|
||||||
break
|
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):
|
def togglechunkSizeCheckBox(self, value):
|
||||||
GUI.chunkSizeWidget.setVisible(value)
|
GUI.chunkSizeWidget.setVisible(value)
|
||||||
|
|||||||
Reference in New Issue
Block a user