forked from didirus/AstralRinth
disable disabled projects on update (#871)
This commit is contained in:
@@ -389,6 +389,10 @@ pub async fn update_project(
|
|||||||
.add_project_version(update_version.id.clone())
|
.add_project_version(update_version.id.clone())
|
||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
|
if project.disabled {
|
||||||
|
profile.toggle_disable_project(&path).await?;
|
||||||
|
}
|
||||||
|
|
||||||
if path != project_path.clone() {
|
if path != project_path.clone() {
|
||||||
profile.remove_project(project_path, Some(true)).await?;
|
profile.remove_project(project_path, Some(true)).await?;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user