diff --git a/lib/features/settings/preferences_dialog.dart b/lib/features/settings/preferences_dialog.dart index 8e35828b..c74dea06 100644 --- a/lib/features/settings/preferences_dialog.dart +++ b/lib/features/settings/preferences_dialog.dart @@ -127,7 +127,11 @@ class PreferencesDialogContentState _historyMax = hist; _fontSize = font; }); - } catch (_) {} + } catch (error, stackTrace) { + // The dialog stays on its defaults; leave a trace of why (a broken + // settings database, an I/O error) for whoever reads the log (#1637). + debugPrint('PreferencesDialog: could not load the preferences: $error\n$stackTrace'); + } } Future _setCheckUpdatesOnStartup(bool enabled) async {