fix: misc issues in app & website (#5512)
* fix: debug info copy button overflowing badly * fix: updating instance's disabled mods re-enables them * fix: modpack update enables previous disabled mods * fix: add more languages #5508
This commit is contained in:
@@ -342,7 +342,7 @@ pub async fn update_project(
|
||||
.remove(project_path)
|
||||
&& let Some(update_version) = &file.update_version_id
|
||||
{
|
||||
let path = Profile::add_project_version(
|
||||
let mut path = Profile::add_project_version(
|
||||
profile_path,
|
||||
update_version,
|
||||
&state.pool,
|
||||
@@ -351,6 +351,11 @@ pub async fn update_project(
|
||||
)
|
||||
.await?;
|
||||
|
||||
if project_path.ends_with(".disabled") {
|
||||
path = Profile::toggle_disable_project(profile_path, &path)
|
||||
.await?;
|
||||
}
|
||||
|
||||
if path != project_path {
|
||||
Profile::remove_project(profile_path, project_path).await?;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user