Commits

Steve Borho committed 7924613

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

Comments (0)

Files changed (1)

tortoisehg/hgqt/quickop.py

         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()
 
             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)