print Qsettings restore error if needed (#1498)

This commit is contained in:
Alex Xu authored and GitHub committed 2026-11-02 18:21:20 -08:00
1 parent 0ee092a3d1
commit dbe5cc0418
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -1509,7 +1509,8 @@ class KCCGUI(QObject, KCC_ui.Ui_mainWindow):
default_options = {'gammaSlider': 0, 'croppingBox': 2, 'croppingPowerSlider': 100, 'rotateBox': 1, 'mangaBox': 2}
try:
self.options = self.settings.value('options', default_options)
except Exception:
except Exception as e:
print(e)
self.options = default_options
self.worker = WorkerThread()
self.worker.setObjectName('worker')