Ability to update the path of a project

This commit is contained in:
estib 2024-09-02 17:40:05 +02:00
parent c1cd40a811
commit 2129ad5a3d

View File

@ -17,6 +17,7 @@ pub struct UpdateRequest {
pub id: ProjectId,
pub title: Option<String>,
pub description: Option<String>,
pub path: Option<PathBuf>,
pub api: Option<ApiProject>,
pub gitbutler_data_last_fetched: Option<FetchResult>,
pub preferred_key: Option<AuthKey>,
@ -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());
}