This commit is contained in:
2024-04-03 01:34:47 +02:00
parent 352049d0a9
commit 6cc11fe817
2 changed files with 3 additions and 5 deletions

View File

@@ -34,7 +34,7 @@ pub async fn download_file_progress(
let total_size = res.content_length().unwrap_or(size);
pb.set_length(total_size);
let msg = format!(
"{} {} ({})",
"[{}] {} ({})",
"Downloading".bright_yellow(),
misc::cute_path(path),
misc::human_readable_bytes(total_size)

View File

@@ -525,10 +525,8 @@ async fn main() {
let log_file = env::current_exe()
.unwrap_or(PathBuf::from("alterware-launcher"))
.with_extension("log");
if log_file.exists() {
if fs::remove_file(&log_file).is_err() {
println!("Couldn't clear log file, make sure target directory is writable.");
}
if log_file.exists() && fs::remove_file(&log_file).is_err() {
println!("Couldn't clear log file, make sure target directory is writable.");
}
let logger_config = LogConfigBuilder::builder()
.path(log_file.to_str().unwrap())