2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Allow many previews in SendFilesBox.

This commit is contained in:
John Preston
2020-10-16 10:52:55 +03:00
parent 8d2fa313b7
commit 202534575b
16 changed files with 286 additions and 226 deletions

View File

@@ -530,10 +530,11 @@ FileLoadTask::FileLoadTask(
FileLoadTask::~FileLoadTask() = default;
std::unique_ptr<Ui::PreparedFileInformation> FileLoadTask::ReadMediaInformation(
const QString &filepath,
const QByteArray &content,
const QString &filemime) {
auto FileLoadTask::ReadMediaInformation(
const QString &filepath,
const QByteArray &content,
const QString &filemime)
-> std::unique_ptr<Ui::PreparedFileInformation> {
auto result = std::make_unique<Ui::PreparedFileInformation>();
result->filemime = filemime;