1
0
Fork 0

Move back to old file dialog.

This commit is contained in:
namedkitten 2020-05-01 09:28:34 +01:00
parent 8ef688a31b
commit 214f0bc6ae
2 changed files with 3 additions and 3 deletions

View file

@ -83,13 +83,14 @@ MenuBar {
} }
} }
LabsPlatform.FileDialog { FileDialog {
id: fileDialog id: fileDialog
title: translate.getTranslation("OPEN_FILE", i18n.language) title: translate.getTranslation("OPEN_FILE", i18n.language)
nameFilters: ["All files (*)"] nameFilters: ["All files (*)"]
selectMultiple: false
onAccepted: { onAccepted: {
player.playerCommand(Enums.Commands.LoadFile, player.playerCommand(Enums.Commands.LoadFile,
String(fileDialog.file)) String(fileDialog.fileUrl))
fileDialog.close() fileDialog.close()
} }
onRejected: { onRejected: {

View file

@ -1,7 +1,6 @@
import QtQuick 2.0 import QtQuick 2.0
import QtQuick.Controls 2.3 import QtQuick.Controls 2.3
import QtQuick.Window 2.2 import QtQuick.Window 2.2
import Qt.labs.settings 1.0
import player 1.0 import player 1.0
Window { Window {