Assembly: Add preference to enable debug files of dragging

This commit is contained in:
PaddleStroke
2024-06-04 17:42:18 +02:00
committed by Chris Hennes
parent 42eb4fdda6
commit 7345d76f2c
3 changed files with 29 additions and 3 deletions

View File

@@ -38,11 +38,13 @@ class PreferencesPage:
def saveSettings(self):
pref = preferences()
pref.SetBool("LeaveEditWithEscape", self.form.checkBoxEnableEscape.isChecked())
pref.SetBool("LogSolverDebug", self.form.checkBoxSolverDebug.isChecked())
pref.SetInt("GroundFirstPart", self.form.groundFirstPart.currentIndex())
def loadSettings(self):
pref = preferences()
self.form.checkBoxEnableEscape.setChecked(pref.GetBool("LeaveEditWithEscape", True))
self.form.checkBoxSolverDebug.setChecked(pref.GetBool("LogSolverDebug", False))
self.form.groundFirstPart.clear()
self.form.groundFirstPart.addItem(translate("Assembly", "Ask"))
self.form.groundFirstPart.addItem(translate("Assembly", "Always"))