From 8f4072bfabe0d9bbba554bd75868768380f97669 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 11 Apr 2026 19:32:49 -0700 Subject: [PATCH] disable extra png options when png is not selected (#1289) --- kindlecomicconverter/KCC_gui.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index c67e2bb..54aff4e 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -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)