Skip to content

fix(settings): log why PreferencesDialog could not load the preferences (#1637) - #1695

Merged
ZhuchkaTriplesix merged 2 commits into
devfrom
fix/preferences-load-log-errors
Oct 17, 2026
Merged

ZhuchkaTriplesix merged 2 commits into
devfrom
fix/preferences-load-log-errors

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Closes #1637.

PreferencesDialog._load read the settings one after another inside try { ... } catch (_) {}. A failing read (corrupt settings database, I/O error, schema mismatch) left the dialog on its defaults and no trace anywhere. It now catches (error, stackTrace) and writes both with debugPrint; behaviour for the user is unchanged (the dialog still opens with its defaults).

No test: the failure has to come from AppSettings / the local database, which the dialog tests do not let me break without a larger seam than this change is worth.

@github-actions github-actions Bot added bug Something isn't working error-handling Theme parser epic label: error-handling settings Theme parser epic label: settings labels Oct 17, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 23cf351 into dev Oct 17, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working error-handling Theme parser epic label: error-handling settings Theme parser epic label: settings

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant