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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user