FreeCAD / FreeCAD/FreeCAD

Preferences / User Parameters - defaults need to be duplicated

Open
#14,919 5 comments 1 reaction 0 assignees View on GitHub
Mod: Core Topic: Preferences Type: Feature
Dominant language
C++
Stars
33.6k
Forks
6k
Avg merge
3d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Problem description

All settings are implemented by User Parameters - either via our custom `Pref` widgets or by manually reading and writing to user parameters. Furthermore, every time some User Parameter is used user must provide default value which must be duplicated across the codebase:

![image](https://github.com/FreeCAD/FreeCAD/assets/747404/865a2e8f-e185-4a1b-a4c8-4b8b833d3674)

This leads to many inconsistencies, visible mostly in the preferences. Furthermore each change forces us to update potentially multiple places which are very hard to find and so can easily lead to inconsistencies for new users that do not have the default value specified.

### Full version info

```shell
0.22dev
```

### Subproject(s) affected?

None

### Anything else?

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.