From a71a0192b85654c7a888ceff0192f0f0e1384208 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Tue, 31 Oct 2023 13:29:38 +0100 Subject: [PATCH] check progress size in last event instead --- plugins/upload/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/upload/src/lib.rs b/plugins/upload/src/lib.rs index a20b769e..b7546756 100644 --- a/plugins/upload/src/lib.rs +++ b/plugins/upload/src/lib.rs @@ -92,7 +92,7 @@ async fn download( temp_progress = 0; } } - if i < 10 { + if temp_progress != 0 { window .emit( "download://progress",