mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-29 20:43:37 +03:00
Ability to update the path of a project
This commit is contained in:
parent
c1cd40a811
commit
2129ad5a3d
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user