fix: Resolve UI reactivity issues by including name, status, and size in partial updates

This commit is contained in:
spinline
2026-01-30 18:54:54 +03:00
parent 203a436a04
commit 16fbf7306a
3 changed files with 24 additions and 3 deletions

View File

@@ -35,12 +35,15 @@ pub enum AppEvent {
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct TorrentUpdate {
pub hash: String,
pub name: Option<String>,
pub size: Option<i64>,
pub down_rate: Option<i64>,
pub up_rate: Option<i64>,
pub percent_complete: Option<f64>,
pub completed: Option<i64>,
pub eta: Option<i64>,
pub status: Option<TorrentStatus>,
pub error_message: Option<String>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]