diff --git a/src-tauri/src/download.rs b/src-tauri/src/download.rs index e59526a2..c42bfbd9 100644 --- a/src-tauri/src/download.rs +++ b/src-tauri/src/download.rs @@ -1,5 +1,6 @@ use crate::errors::{Context, Result}; use std::collections::HashMap; +use std::sync::Arc; use crate::{err, utils, SharedState}; use futures::StreamExt; @@ -144,7 +145,7 @@ impl Downloader { total_file_size: u64, size_on_disk: u64, ) -> Result<()> { - let state = self.window.state::(); + let state = self.window.state::>(); let mut downloading_files_guard = state.downloading_files.lock().await; if downloading_files_guard.contains(&output_path.as_ref().to_string()) { log::warn!("File already downloading: {}", output_path.as_ref()); diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index d3f3c764..79a817d7 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -258,7 +258,7 @@ fn main() { .setup(|app| { tauri::async_runtime::block_on(async move { utils::fetch_services_manifests( - "https://raw.githubusercontent.com/premAI-io/prem-registry/dev/manifests.json", + "https://raw.githubusercontent.com/premAI-io/prem-registry/v1/manifests.json", app.state::>().deref().clone(), ) .await diff --git a/src/controller/serviceController.ts b/src/controller/serviceController.ts index 6989cd92..6a61ceec 100644 --- a/src/controller/serviceController.ts +++ b/src/controller/serviceController.ts @@ -104,7 +104,6 @@ class ServiceController implements IServiceController { if (serviceType === "docker") { useSettingStore.getState().addServiceAsDownloading(serviceId); await this.dockerController.download({ serviceId, afterSuccess }); - useSettingStore.getState().removeServiceAsDownloading(serviceId); } else if (serviceType === "binary") { useSettingStore.getState().addServiceAsDownloading(serviceId); await this.binariesController.download({