mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Implement progressive jpeg loading and sending.
This commit is contained in:
@@ -446,6 +446,7 @@ webFileLoader::webFileLoader(
|
||||
session,
|
||||
QString(),
|
||||
0,
|
||||
0,
|
||||
UnknownFileLocation,
|
||||
LoadToCacheAsWell,
|
||||
fromCloud,
|
||||
@@ -489,7 +490,7 @@ int webFileLoader::currentOffset() const {
|
||||
}
|
||||
|
||||
void webFileLoader::loadProgress(qint64 ready, qint64 total) {
|
||||
_size = total;
|
||||
_fullSize = _loadSize = total;
|
||||
_ready = ready;
|
||||
notifyAboutProgress();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user