From e432b95a2dc5d5ec67db09e8d9cb0632743d92cf Mon Sep 17 00:00:00 2001 From: mateofuentespombo Date: Wed, 22 Jul 2026 21:23:19 +0200 Subject: [PATCH] feat: live refresh in the download/upload/task info modals The info modals held a live reference to their model but only rendered a snapshot taken when opened, so progress, state, duration and speed froze until the modal was reopened. Subscribe each modal to the aggregated throttled TransactionsChanged event while it is visible (subscribed on ShowModal, unsubscribed on HideModal and Dispose) and re-render on the UI thread, following the same pattern the transfer tables use. --- .../InfoModals/DownloadFileInfoModal.razor | 24 +++++++++++++++++++ .../Modals/InfoModals/TaskInfoModal.razor | 24 +++++++++++++++++++ .../InfoModals/UploadFileInfoModal.razor | 24 +++++++++++++++++++ 3 files changed, 72 insertions(+) diff --git a/TelegramDownloader/Pages/Modals/InfoModals/DownloadFileInfoModal.razor b/TelegramDownloader/Pages/Modals/InfoModals/DownloadFileInfoModal.razor index 767b216..58a0f4a 100644 --- a/TelegramDownloader/Pages/Modals/InfoModals/DownloadFileInfoModal.razor +++ b/TelegramDownloader/Pages/Modals/InfoModals/DownloadFileInfoModal.razor @@ -1,5 +1,8 @@ @using TelegramDownloader.Models @using TelegramDownloader.Services +@implements IDisposable + +@inject TransactionInfoService tis