From aaf808477e5d8a00f08041b3d825bc444a7face7 Mon Sep 17 00:00:00 2001 From: ToBinio <81473300+ToBinio@users.noreply.github.com> Date: Thu, 16 Nov 2023 00:38:13 +0100 Subject: [PATCH] disable disabled projects on update (#871) --- theseus/src/api/profile/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/theseus/src/api/profile/mod.rs b/theseus/src/api/profile/mod.rs index fa3496552..7e35204ff 100644 --- a/theseus/src/api/profile/mod.rs +++ b/theseus/src/api/profile/mod.rs @@ -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?; }