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:
Ulterno Ω*
2024-02-11 12:17:39 +00:00
committed by Tobias Fella
parent 0cd0a6a672
commit e1c279265c

View File

@@ -105,7 +105,7 @@ Components.AlbumMaximizeComponent {
Component {
id: saveAsDialog
Platform.FileDialog {
fileMode: FileDialog.SaveFile
fileMode: Platform.FileDialog.SaveFile
folder: root.saveFolder
onAccepted: {
Config.lastSaveDirectory = folder
@@ -113,7 +113,7 @@ Components.AlbumMaximizeComponent {
if (!currentFile) {
return;
}
currentRoom.downloadFile(rooteventId, currentFile)
currentRoom.downloadFile(root.currentEventId, currentFile)
}
}
}