diff --git a/crates/gitbutler-core/src/projects/storage.rs b/crates/gitbutler-core/src/projects/storage.rs index ce758fef4..7e9476e79 100644 --- a/crates/gitbutler-core/src/projects/storage.rs +++ b/crates/gitbutler-core/src/projects/storage.rs @@ -26,6 +26,7 @@ pub struct UpdateRequest { pub project_data_last_fetched: Option, pub omit_certificate_check: Option, pub use_diff_context: Option, + pub snapshot_lines_threshold: Option, } #[derive(Debug, thiserror::Error)] @@ -125,6 +126,10 @@ impl Storage { project.omit_certificate_check = Some(omit_certificate_check); } + if let Some(snapshot_lines_threshold) = update_request.snapshot_lines_threshold { + project.snapshot_lines_threshold = Some(snapshot_lines_threshold); + } + self.inner .write(PROJECTS_FILE, &serde_json::to_string_pretty(&projects)?)?;