2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Improve phrases in SendFilesBox drag areas.

This commit is contained in:
John Preston
2023-08-30 21:49:22 +04:00
parent 3dc0e3818b
commit f10da51517
2 changed files with 7 additions and 4 deletions

View File

@@ -442,8 +442,10 @@ void SendFilesBox::setupDragArea() {
auto computeState = [=](const QMimeData *data) {
using DragState = Storage::MimeDataState;
const auto state = Storage::ComputeMimeDataState(data);
return (state == DragState::PhotoFiles)
? DragState::Image
return (state == DragState::PhotoFiles || state == DragState::Image)
? (_sendWay.current().sendImagesAsPhotos()
? DragState::Image
: DragState::Files)
: state;
};
const auto areas = DragArea::SetupDragAreaToContainer(