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

Allow drag-n-drop-ing files up to 4 GB.

Fixes #24657.
This commit is contained in:
John Preston
2022-06-22 18:55:18 +04:00
parent 0e771312f4
commit 0df699a054
3 changed files with 4 additions and 4 deletions

View File

@@ -165,8 +165,8 @@ MimeDataState ComputeMimeDataState(const QMimeData *data) {
const auto filesize = info.size();
if (filesize > kFileSizePremiumLimit) {
return MimeDataState::None;
} else if (filesize > kFileSizeLimit) {
return MimeDataState::PremiumFile;
//} else if (filesize > kFileSizeLimit) {
// return MimeDataState::PremiumFile;
} else if (allAreSmallImages) {
if (filesize > Images::kReadBytesLimit) {
allAreSmallImages = false;

View File

@@ -23,7 +23,7 @@ enum class MimeDataState {
None,
Files,
PhotoFiles,
PremiumFile,
//PremiumFile,
Image,
};