Skip to content

fix module-border-settings not saving - #22109

Merged
TurboGit merged 1 commit into
darktable-org:masterfrom
anoderay:settingsfix
Sep 1, 2026
Merged

fix module-border-settings not saving#22109
TurboGit merged 1 commit into
darktable-org:masterfrom
anoderay:settingsfix

Conversation

@anoderay

@anoderay anoderay commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

The new settings general/focused module border + expanded module border were not being saved across launches of darktable.

Cause: themes/focused-module-border and themes/expanded-module-border are stored as combobox indices via dt_conf_set_int()/dt_conf_get_int(), but darktableconfig.xml.in declared them as bool.

_sanitize_confgen() treats any DT_BOOL-typed value that isn't literally "true"/"false" as garbage and resets it to the schema default when darktablerc is read on startup. Since the persisted value is always a plain index ("0"–"6"), both settings silently reverted to their default (disabled) on every restart, even though they applied correctly for the rest of the running session.

Also fixes a related mismatch: the code reads/writes themes/accent-color, while the schema registered themes/colored-accent under that same feature. Renamed the schema entry to match the code.

No release note as the feature isn't present in 5.6.1.

Co-Created with Claude Opus 5

@TurboGit TurboGit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thanks for fixing.

@TurboGit TurboGit added this to the 5.8 milestone Sep 1, 2026
@TurboGit TurboGit added bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes scope: UI user interface and interactions labels Sep 1, 2026
@TurboGit
TurboGit merged commit c2c0fad into darktable-org:master Sep 1, 2026
6 checks passed
@anoderay
anoderay deleted the settingsfix branch September 1, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix pull request fixing a bug priority: high core features are broken and not usable at all, software crashes scope: UI user interface and interactions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants