diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-03 19:15:44 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-03 19:15:44 +0300 |
commit | 09a49cfe0925494f7fd516657df7fe327c7370dd (patch) | |
tree | 44d9d0e278fe250282bbe73b082a8952bb4645c0 /plugins/NewStory/src/history_array.cpp | |
parent | 756cbebea5281171c32d62a599cedd9657db7999 (diff) |
fixes #3946 (Прогресс скачивания крупных файлов)
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 2d109c1540..4e5ac3a1a5 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -401,7 +401,10 @@ void ItemData::load(bool bLoadAlways) DB::FILE_BLOB blob(dbe); if (blob.isOffline()) { m_bOfflineFile = true; - m_bOfflineDownloaded = blob.isCompleted(); + if (blob.isCompleted()) + m_bOfflineDownloaded = 100; + else + m_bOfflineDownloaded = uint8_t(100.0 * blob.getTransferred() / blob.getSize()); CMStringW buf; buf.Append(blob.getName() ? blob.getName() : TranslateT("Unnamed")); |