feat(VersionsMenu): download to custom path (#87)

This commit is contained in:
/home/neo
2026-06-24 19:58:34 +03:00
committed by GitHub
parent e65ea4e06a
commit 5d7d2148cc
8 changed files with 62 additions and 7 deletions
+5
View File
@@ -22,6 +22,11 @@ pub fn get_instance_working_dir(app: &AppHandle, instance_id: &str) -> PathBuf {
}
}
}
if let Some(ref custom_paths) = config.custom_paths {
if let Some(path) = custom_paths.get(instance_id) {
return PathBuf::from(path);
}
}
root.join("instances").join(instance_id)
}