Repository navigation
fix: persist NotificationSound by stable key, not display text - #42
Merged
Merged
Conversation
Use Tag attribute on WinUI ComboBoxItems to decouple display text from persisted settings values. Load and save by Tag instead of Content in SettingsWindow.xaml.cs. Add documentation comment in WinForms SettingsDialog.cs making the persistence contract explicit. Backward compatible — existing settings.json values already match the Tag keys. Worst case for unknown values: falls back to Default. Fixes #41
This was referenced Mar 17, 2026
7 of 16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Decouple
NotificationSounddisplay text from persisted settings values, fixing a culture-sensitivity bug that would break settings if display strings are ever localized or changed.Changes
Tagattributes to ComboBoxItems (stable persistence keys)Taginstead ofContentFollows the
Tagattribute pattern already used correctly inActivityStreamWindow.xaml.Backward compatible — existing
settings.jsonfiles are unaffected since current values already match the Tag keys. Unknown values fall back to "Default" (index 0).Prerequisite for localization work in #40.
Fixes #41