mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Handle documentLoadProgress instead of itemRepaintRequest.
This commit is contained in:
@@ -1281,21 +1281,19 @@ void Session::requestPollViewRepaint(not_null<const PollData*> poll) {
|
||||
|
||||
void Session::documentLoadProgress(not_null<DocumentData*> document) {
|
||||
requestDocumentViewRepaint(document);
|
||||
session().documentUpdated.notify(document, true);
|
||||
|
||||
if (document->isAudioFile()) {
|
||||
::Media::Player::instance()->documentLoadProgress(document);
|
||||
}
|
||||
_documentLoadProgress.fire_copy(document);
|
||||
}
|
||||
|
||||
void Session::documentLoadDone(not_null<DocumentData*> document) {
|
||||
notifyDocumentLayoutChanged(document);
|
||||
_documentLoadProgress.fire_copy(document);
|
||||
}
|
||||
|
||||
void Session::documentLoadFail(
|
||||
not_null<DocumentData*> document,
|
||||
bool started) {
|
||||
notifyDocumentLayoutChanged(document);
|
||||
_documentLoadProgress.fire_copy(document);
|
||||
}
|
||||
|
||||
void Session::photoLoadProgress(not_null<PhotoData*> photo) {
|
||||
|
Reference in New Issue
Block a user