From c23c0b5f42cf2ebfd02708e7c3a22b275eca43df Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Sat, 22 Jul 2023 12:27:55 +0800 Subject: [PATCH] Fix the FolderDialog and macOS download bug. 1. fix the "FolderDialog is not a type" error in Qt 6.2.4 and below. 2. fix download error in macOS. --- example/qml/page/T_Http.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/qml/page/T_Http.qml b/example/qml/page/T_Http.qml index 07804936..d5a8572b 100644 --- a/example/qml/page/T_Http.qml +++ b/example/qml/page/T_Http.qml @@ -1,5 +1,5 @@ import QtQuick -import QtCore +import Qt.labs.platform import QtQuick.Layouts import QtQuick.Window import QtQuick.Controls @@ -117,7 +117,7 @@ FluScrollablePage{ id: file_dialog currentFolder: StandardPaths.standardLocations(StandardPaths.DownloadLocation)[0] onAccepted: { - var path = selectedFolder.toString().replace("file:///","") + "/big_buck_bunny.mp4" + var path = currentFolder.toString().replace(FluTools.isMacos() ? "file://" : "file:///","") + "/big_buck_bunny.mp4" http_download.download(path) } }