forked from akanyan/STARTLINER
feat: less bad installations
This commit is contained in:
@ -58,7 +58,7 @@ pub async fn run(_args: Vec<String>) {
|
||||
let mutex = apph.state::<Mutex<AppData>>();
|
||||
let mut appd = mutex.lock().await;
|
||||
_ = appd.pkgs.fetch_listings().await;
|
||||
if let Err(e) = appd.pkgs.install_package(&key, true).await {
|
||||
if let Err(e) = appd.pkgs.install_package(&key, true, true).await {
|
||||
log::warn!("Fail: {}", e.to_string());
|
||||
}
|
||||
});
|
||||
@ -89,7 +89,7 @@ pub async fn run(_args: Vec<String>) {
|
||||
tauri::async_runtime::spawn(async move {
|
||||
let mutex = apph.state::<Mutex<AppData>>();
|
||||
let mut appd = mutex.lock().await;
|
||||
_ = appd.pkgs.install_package(&key, true).await;
|
||||
_ = appd.pkgs.install_package(&key, true, false).await;
|
||||
});
|
||||
}));
|
||||
|
||||
|
Reference in New Issue
Block a user