Fix issues with saveFileAs

Fix #491
This commit is contained in:
Carl Schwan
2021-12-28 23:42:16 +01:00
parent aeee367e82
commit 297684a139
3 changed files with 1 additions and 8 deletions

View File

@@ -80,7 +80,7 @@ TimelineContainer {
PropertyChanges {
target: downloadButton
onClicked: root.saveFileAs()
onClicked: fileDelegate.saveFileAs()
}
}
]

View File

@@ -72,12 +72,6 @@ TimelineContainer {
}
}
function saveFileAs() {
var dialog = fileDialog.createObject(ApplicationWindow.overlay)
dialog.open()
dialog.currentFile = dialog.folder + "/" + currentRoom.fileNameToDownload(eventId)
}
Component {
id: fileDialog

View File

@@ -24,7 +24,6 @@ QQC2.ItemDelegate {
property bool showUserMessageOnRight: Config.showLocalMessagesOnRight && model.author.isLocalUser && !applicationWindow().wideScreen
signal saveFileAs()
signal openExternally()
signal replyClicked(string eventID)