print Qsettings restore error if needed (#1498)
This commit is contained in:
1 parent
0ee092a3d1
commit
dbe5cc0418
2 files changed
+3
-1
No files matched your search
@@ -16,6 +16,7 @@ osx10.11
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
/dist*
|
/dist*
|
||||||
/intel
|
/intel
|
||||||
|
/3.10
|
||||||
/3.11
|
/3.11
|
||||||
/3.12
|
/3.12
|
||||||
/3.13
|
/3.13
|
||||||
|
|||||||
@@ -1509,7 +1509,8 @@ class KCCGUI(QObject, KCC_ui.Ui_mainWindow):
|
|||||||
default_options = {'gammaSlider': 0, 'croppingBox': 2, 'croppingPowerSlider': 100, 'rotateBox': 1, 'mangaBox': 2}
|
default_options = {'gammaSlider': 0, 'croppingBox': 2, 'croppingPowerSlider': 100, 'rotateBox': 1, 'mangaBox': 2}
|
||||||
try:
|
try:
|
||||||
self.options = self.settings.value('options', default_options)
|
self.options = self.settings.value('options', default_options)
|
||||||
except Exception:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
self.options = default_options
|
self.options = default_options
|
||||||
self.worker = WorkerThread()
|
self.worker = WorkerThread()
|
||||||
self.worker.setObjectName('worker')
|
self.worker.setObjectName('worker')
|
||||||
|
|||||||
Reference in new issue
Block a user