Remove unused TDLibFile from image page

This commit is contained in:
John Gibbon 2021-01-19 22:52:49 +01:00
parent b6468ec924
commit 844498ee46

View file

@ -61,12 +61,6 @@ Page {
}
}
TDLibFile {
id: imageFile
tdlib: tdLibWrapper
autoLoad: true
}
Connections {
target: tdLibWrapper
onCopyToDownloadsSuccessful: {
@ -84,11 +78,11 @@ Page {
interactive: !imageOnly
PullDownMenu {
visible: !imageOnly && imageFile.isDownloadingCompleted && imageFile.path
visible: !imageOnly && singleImage.file.isDownloadingCompleted
MenuItem {
text: qsTr("Download Picture")
onClicked: {
tdLibWrapper.copyFileToDownloads(imageFile.path);
tdLibWrapper.copyFileToDownloads(singleImage.file.path);
}
}
}