settings_ui: Add maybe settings (#40724)
Closes #ISSUE Adds a `Maybe<T>` type to `settings_content`, that makes the distinction between `null` and omitted settings values explicit. This unlocks a few more settings in the settings UI Release Notes: - N/A *or* Added/Fixed/Improved ...
This commit is contained in:
@@ -50,7 +50,7 @@ impl Settings for WorktreeSettings {
|
||||
.collect();
|
||||
|
||||
Self {
|
||||
project_name: worktree.project_name.filter(|p| !p.is_empty()),
|
||||
project_name: worktree.project_name.into_inner(),
|
||||
file_scan_exclusions: path_matchers(file_scan_exclusions, "file_scan_exclusions")
|
||||
.log_err()
|
||||
.unwrap_or_default(),
|
||||
|
||||
Reference in New Issue
Block a user