Remove unused TDLibFile from image page
This commit is contained in:
parent
b6468ec924
commit
844498ee46
1 changed files with 2 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue