- the application now uses only the default values from the app.options dict, the app.defaults dict holds the definitive default values
- fixed some outstanding issues from the PyQt6 port - PEP8 fixes - minor fixes - updated the saving of Preferences to update the self.options too: the `Apply` action will update the self.options but the `Save` action will save the updated preferences to the file on disk
This commit is contained in:
@@ -185,7 +185,7 @@ class ToolOptimal(AppTool):
|
||||
self.ui.result_entry.set_value(0.0)
|
||||
self.ui.freq_entry.set_value(0)
|
||||
|
||||
self.ui.precision_spinner.set_value(int(self.app.defaults["tools_opt_precision"]))
|
||||
self.ui.precision_spinner.set_value(int(self.app.options["tools_opt_precision"]))
|
||||
self.ui.locations_textb.clear()
|
||||
# new cursor - select all document
|
||||
cursor = self.ui.locations_textb.textCursor()
|
||||
|
||||
Reference in New Issue
Block a user