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 { Connections {
target: tdLibWrapper target: tdLibWrapper
onCopyToDownloadsSuccessful: { onCopyToDownloadsSuccessful: {
@ -84,11 +78,11 @@ Page {
interactive: !imageOnly interactive: !imageOnly
PullDownMenu { PullDownMenu {
visible: !imageOnly && imageFile.isDownloadingCompleted && imageFile.path visible: !imageOnly && singleImage.file.isDownloadingCompleted
MenuItem { MenuItem {
text: qsTr("Download Picture") text: qsTr("Download Picture")
onClicked: { onClicked: {
tdLibWrapper.copyFileToDownloads(imageFile.path); tdLibWrapper.copyFileToDownloads(singleImage.file.path);
} }
} }
} }