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 {
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue