mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Fix sending image from clipboard as file.
This commit is contained in:
@@ -797,7 +797,9 @@ bool DocumentData::saveToCache() const {
|
||||
|| isAnimation()
|
||||
|| isVoiceMessage()
|
||||
|| (type == WallPaperDocument)
|
||||
|| isTheme());
|
||||
|| isTheme()
|
||||
|| (mimeString() == qstr("image/png")
|
||||
&& _filename.startsWith("image_")));
|
||||
}
|
||||
|
||||
void DocumentData::automaticLoadSettingsChanged() {
|
||||
|
@@ -2027,6 +2027,7 @@ void OverlayWidget::displayDocument(
|
||||
initThemePreview();
|
||||
} else {
|
||||
_documentMedia->automaticLoad(fileOrigin(), item);
|
||||
_document->saveFromDataSilent();
|
||||
auto &location = _document->location(true);
|
||||
if (location.accessEnable()) {
|
||||
const auto &path = location.name();
|
||||
|
Reference in New Issue
Block a user