This commit is contained in:
Carl Schwan
2020-12-03 22:19:51 +01:00
parent 23ec54ecd0
commit 10d84e96b7

View File

@@ -422,11 +422,6 @@ ToolBar {
onClicked: {
if (Clipboard.hasImage) {
documentHandler.paste()
const localPath = Platform.StandardPaths.writableLocation(Platform.StandardPaths.CacheLocation) + "/screenshots/" + (new Date()).getTime() + ".png"
if (!Clipboard.saveImage(localPath)) return
chatTextInput.attach(localPath)
attachDialog.close()
attachDialog.open()
} else {
var fileDialog = openFileDialog.createObject(ApplicationWindow.overlay)