disable disabled projects on update (#871)

This commit is contained in:
ToBinio 2023-11-16 00:38:13 +01:00 committed by GitHub
parent 8e3ddbcfaf
commit aaf808477e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -389,6 +389,10 @@ pub async fn update_project(
.add_project_version(update_version.id.clone())
.await?;
if project.disabled {
profile.toggle_disable_project(&path).await?;
}
if path != project_path.clone() {
profile.remove_project(project_path, Some(true)).await?;
}