Fix saving images
Fixed variable names and scope resolution for saveAsDialog in NeochatMaximizeComponent Hence, correcting the File Dialog type and making the downloadFile function work. BUG: 479053
This commit is contained in:
@@ -105,7 +105,7 @@ Components.AlbumMaximizeComponent {
|
|||||||
Component {
|
Component {
|
||||||
id: saveAsDialog
|
id: saveAsDialog
|
||||||
Platform.FileDialog {
|
Platform.FileDialog {
|
||||||
fileMode: FileDialog.SaveFile
|
fileMode: Platform.FileDialog.SaveFile
|
||||||
folder: root.saveFolder
|
folder: root.saveFolder
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
Config.lastSaveDirectory = folder
|
Config.lastSaveDirectory = folder
|
||||||
@@ -113,7 +113,7 @@ Components.AlbumMaximizeComponent {
|
|||||||
if (!currentFile) {
|
if (!currentFile) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
currentRoom.downloadFile(rooteventId, currentFile)
|
currentRoom.downloadFile(root.currentEventId, currentFile)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user