mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/telegramdesktop/tdesktop
synced 2026-09-20 16:13:46 +08:00
Added preparing phase with progress for video downscaling.
This commit is contained in:
@@ -1088,6 +1088,9 @@ bool DocumentData::displayLoading() const {
|
||||
|
||||
float64 DocumentData::progress() const {
|
||||
if (uploading()) {
|
||||
if (uploadingData->preparing) {
|
||||
return 0.;
|
||||
}
|
||||
if (uploadingData->size > 0) {
|
||||
const auto result = float64(uploadingData->offset)
|
||||
/ float64(uploadingData->size);
|
||||
|
||||
Reference in New Issue
Block a user