mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix sending image from clipboard as file.
This commit is contained in:
parent
cdc295c1d7
commit
571a15bf92
2 changed files with 4 additions and 1 deletions
|
@ -797,7 +797,9 @@ bool DocumentData::saveToCache() const {
|
||||||
|| isAnimation()
|
|| isAnimation()
|
||||||
|| isVoiceMessage()
|
|| isVoiceMessage()
|
||||||
|| (type == WallPaperDocument)
|
|| (type == WallPaperDocument)
|
||||||
|| isTheme());
|
|| isTheme()
|
||||||
|
|| (mimeString() == qstr("image/png")
|
||||||
|
&& _filename.startsWith("image_")));
|
||||||
}
|
}
|
||||||
|
|
||||||
void DocumentData::automaticLoadSettingsChanged() {
|
void DocumentData::automaticLoadSettingsChanged() {
|
||||||
|
|
|
@ -2027,6 +2027,7 @@ void OverlayWidget::displayDocument(
|
||||||
initThemePreview();
|
initThemePreview();
|
||||||
} else {
|
} else {
|
||||||
_documentMedia->automaticLoad(fileOrigin(), item);
|
_documentMedia->automaticLoad(fileOrigin(), item);
|
||||||
|
_document->saveFromDataSilent();
|
||||||
auto &location = _document->location(true);
|
auto &location = _document->location(true);
|
||||||
if (location.accessEnable()) {
|
if (location.accessEnable()) {
|
||||||
const auto &path = location.name();
|
const auto &path = location.name();
|
||||||
|
|
Loading…
Add table
Reference in a new issue