mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
fixed audio mark as read after download
This commit is contained in:
parent
7ca4ec1bed
commit
f24e3c6192
1 changed files with 2 additions and 0 deletions
|
@ -1369,6 +1369,7 @@ void MainWidget::audioLoadProgress(mtpFileLoader *loader) {
|
||||||
audioVoice()->pauseresume();
|
audioVoice()->pauseresume();
|
||||||
} else {
|
} else {
|
||||||
audioVoice()->play(audio);
|
audioVoice()->play(audio);
|
||||||
|
if (App::main()) App::main()->audioMarkRead(audio);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
QPoint pos(QCursor::pos());
|
QPoint pos(QCursor::pos());
|
||||||
|
@ -1377,6 +1378,7 @@ void MainWidget::audioLoadProgress(mtpFileLoader *loader) {
|
||||||
} else {
|
} else {
|
||||||
psOpenFile(already, audio->openOnSave < 0);
|
psOpenFile(already, audio->openOnSave < 0);
|
||||||
}
|
}
|
||||||
|
if (App::main()) App::main()->audioMarkRead(audio);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue