diff --git a/crates/gitbutler-project/src/storage.rs b/crates/gitbutler-project/src/storage.rs index edbe4033b..f4cdc7fae 100644 --- a/crates/gitbutler-project/src/storage.rs +++ b/crates/gitbutler-project/src/storage.rs @@ -17,6 +17,7 @@ pub struct UpdateRequest { pub id: ProjectId, pub title: Option, pub description: Option, + pub path: Option, pub api: Option, pub gitbutler_data_last_fetched: Option, pub preferred_key: Option, @@ -85,6 +86,10 @@ impl Storage { project.description = Some(description.clone()); } + if let Some(path) = &update_request.path { + project.path = path.clone(); + } + if let Some(api) = &update_request.api { project.api = Some(api.clone()); }