This instance will be upgraded to the latest Heptapod 0.20rc on 2021-02-26 at 11:00 UTC+1

Commit f1dfe9b8 authored by Steve Borho's avatar Steve Borho

quickop: keep --nobackup checkbox persistent, default to checked

parent 79af516c11a2
......@@ -100,6 +100,8 @@ class QuickOpDialog(QDialog):
s = QSettings()
stwidget.loadSettings(s, 'quickop')
self.restoreGeometry(s.value('quickop/geom').toByteArray())
if hasattr(self, 'chk'):
self.chk.setChecked(s.value('quickop/nobackup', True).toBool())
self.stwidget = stwidget
self.stwidget.refreshWctx()
......@@ -146,6 +148,8 @@ class QuickOpDialog(QDialog):
s = QSettings()
self.stwidget.saveSettings(s, 'quickop')
s.setValue('quickop/geom', self.saveGeometry())
if hasattr(self, 'chk'):
s.setValue('quickop/nobackup', self.chk.isChecked())
QDialog.reject(self)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment