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

Added ability to send not loaded GIFs with Ctrl key.

This commit is contained in:
23rd
2019-05-25 17:15:37 +03:00
committed by John Preston
parent 1dd461b24a
commit cf45b0d317

View File

@@ -358,7 +358,8 @@ void GifsListWidget::selectInlineResult(int row, int column) {
photo->thumbnail()->loadEvenCancelled(Data::FileOrigin());
}
} else if (const auto document = item->getDocument()) {
if (document->loaded()) {
if (document->loaded()
|| QGuiApplication::keyboardModifiers() == Qt::ControlModifier) {
_fileChosen.fire_copy(document);
} else if (document->loading()) {
document->cancel();