From d26a6916478b9eb76c9d09a675c74ce6a04df3cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ulterno=20=CE=A9*?= Date: Sun, 11 Feb 2024 12:17:39 +0000 Subject: [PATCH] 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 --- src/qml/Component/NeochatMaximizeComponent.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qml/Component/NeochatMaximizeComponent.qml b/src/qml/Component/NeochatMaximizeComponent.qml index 604f5644e..7aac762f4 100644 --- a/src/qml/Component/NeochatMaximizeComponent.qml +++ b/src/qml/Component/NeochatMaximizeComponent.qml @@ -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) } } }