Setting preference default in UI file
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Setting preference default in UI file
I've got a preference setting for the OpenSCAD workbench that is presented as an option menu: right now the value defaulted to zero and everything worked well. I'd like to change the default to 2: it's simple enough to change the other accesses in the code so that when the preference is unset, 2 is returned. But how do I do that for the UI file that generates the Preference page?
- wandererfan
- Veteran
- Posts: 6317
- Joined: Tue Nov 06, 2012 5:42 pm
- Contact:
Re: Setting preference default in UI file
Perfect, thanks!