clean
This commit is contained in:
@@ -422,11 +422,6 @@ ToolBar {
|
|||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (Clipboard.hasImage) {
|
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()
|
attachDialog.open()
|
||||||
} else {
|
} else {
|
||||||
var fileDialog = openFileDialog.createObject(ApplicationWindow.overlay)
|
var fileDialog = openFileDialog.createObject(ApplicationWindow.overlay)
|
||||||
|
|||||||
Reference in New Issue
Block a user