Commit 77b59a5
committed
fix(settings): add fault-tolerant default accessors for robust settings handling
- Added safeExplorerSettings(), safeFilesSettings(), safeThemeSettings() helper functions
- These helpers provide fallback to DEFAULT_SETTINGS when settings are corrupted or undefined
- Prevents 'Cannot read properties of undefined' errors in SettingsDialog
- Imported DEFAULT_SETTINGS from SettingsContext for robust fallback defaults
- Updated explorer sortOrder, files confirmDragAndDrop, and theme settings accessors
- Ensures GUI remains functional even if config files are corrupted or missing
AGENT5: Settings Components fault tolerance fix1 parent a85d86f commit 77b59a5
1 file changed
+1690
-1658
lines changed
0 commit comments