- 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:
@@ -75,15 +75,15 @@ class TclCommandSetSys(TclCommand):
|
||||
"MM": "MM"
|
||||
}
|
||||
|
||||
if param in self.app.defaults:
|
||||
if param in self.app.options:
|
||||
|
||||
try:
|
||||
value = tcl2py[value]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
self.app.defaults[param] = value
|
||||
self.app.defaults.propagate_defaults()
|
||||
self.app.options[param] = value
|
||||
self.app.options.propagate_defaults()
|
||||
|
||||
else:
|
||||
self.raise_tcl_error("No such system parameter \"{}\".".format(param))
|
||||
|
||||
Reference in New Issue
Block a user