Files
neochat/qml/component/DownloadDialog.qml
Black Hat 230231a42f Remove sender tooltip, and sender label, simplify MessageDelegate, add
an option to invoke GC, and update libqmatrixclient.
2018-08-13 22:44:32 +08:00

14 lines
370 B
QML

import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Dialogs 1.2
FileDialog {
id: locationDialog
title: "Please choose a location"
folder: shortcuts.home
selectFolder: true
onAccepted: currentRoom.downloadFile(eventId, folder + "/" + currentRoom.fileNameToDownload(eventId))
onVisibleChanged: visible ? {} : locationDialog.destroy()
}