mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-27 18:24:43 +10:00
Game updates (#187)
* refactor: split umu launcher * feat: latest version picker + fixes * feat: frontend latest changes * feat: game update detection w/ setting * feat: fixes and refactor for game update * fix: windows ui * fix: deps * feat: update modifications * feat: missing ui and lock update * fix: create install dir on init * fix: clippy * fix: clippy x2 * feat: add configuration option to toggle updates * feat: uninstall dropdown on partiallyinstalled
This commit is contained in:
@@ -5,7 +5,7 @@ use std::{
|
||||
};
|
||||
|
||||
use futures_util::StreamExt;
|
||||
use log::warn;
|
||||
use log::{info, warn};
|
||||
use remote::{
|
||||
error::RemoteAccessError,
|
||||
requests::{generate_url, make_authenticated_get},
|
||||
@@ -108,6 +108,8 @@ impl DepotManager {
|
||||
})
|
||||
.collect::<Vec<Depot>>();
|
||||
|
||||
info!("syncing {} depots...", new_depots.len());
|
||||
|
||||
for depot in &mut new_depots {
|
||||
if let Err(sync_error) = self.sync_depot(depot).await {
|
||||
warn!("failed to sync depot {}: {:?}", depot.endpoint, sync_error);
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
use humansize::{BINARY, format_size};
|
||||
use std::{
|
||||
fmt::{Display, Formatter},
|
||||
io,
|
||||
sync::{Arc, mpsc::SendError},
|
||||
fmt::{Display, Formatter}, io, path::StripPrefixError, sync::{Arc, mpsc::SendError}
|
||||
};
|
||||
|
||||
use remote::error::RemoteAccessError;
|
||||
@@ -85,4 +83,10 @@ impl From<RemoteAccessError> for ApplicationDownloadError {
|
||||
fn from(value: RemoteAccessError) -> Self {
|
||||
ApplicationDownloadError::Communication(value)
|
||||
}
|
||||
}
|
||||
|
||||
impl From<StripPrefixError> for ApplicationDownloadError {
|
||||
fn from(value: StripPrefixError) -> Self {
|
||||
ApplicationDownloadError::IoError(Arc::new(io::Error::other(value)))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user