Compare commits

...

2 Commits

Author SHA1 Message Date
zhuzichu 10da873701
Merge pull request #210 from mentalfl0w/dev
Fix the FolderDialog and macOS download bug.
2023-07-23 15:42:59 +08:00
Mentalflow c23c0b5f42
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.
2023-07-22 12:27:55 +08:00
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}