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

Raise file size limit to 2000 MB.

This commit is contained in:
John Preston
2020-07-06 12:18:11 +04:00
parent c9ebe28fc1
commit 2df5972f68
10 changed files with 19 additions and 21 deletions

View File

@@ -776,7 +776,7 @@ void FileLoadTask::process() {
}
_result->filesize = (int32)qMin(filesize, qint64(INT_MAX));
if (!filesize || filesize > App::kFileSizeLimit) {
if (!filesize || filesize > kFileSizeLimit) {
return;
}
@@ -962,7 +962,7 @@ void FileLoadTask::finish() {
tr::lng_send_image_empty(tr::now, lt_name, _filepath)),
Ui::LayerOption::KeepOther);
removeFromAlbum();
} else if (_result->filesize > App::kFileSizeLimit) {
} else if (_result->filesize > kFileSizeLimit) {
Ui::show(
Box<InformBox>(
tr::lng_send_image_too_large(tr::now, lt_name, _filepath)),