From e6383a47cae6970b969cf62b0aa38495729a86e4 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 23 Dec 2023 21:22:04 +0100 Subject: [PATCH] Fix start dir for file dialog --- app/qml/DevicePage.qml | 3 ++- smsapp/qml/SendingArea.qml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/qml/DevicePage.qml b/app/qml/DevicePage.qml index 514f7fdf0..815384296 100644 --- a/app/qml/DevicePage.qml +++ b/app/qml/DevicePage.qml @@ -5,6 +5,7 @@ */ import QtQuick +import QtCore import QtQuick.Controls as QQC2 import QtQuick.Layouts import QtQuick.Dialogs @@ -172,7 +173,7 @@ Kirigami.ScrollablePage { id: fileDialog readonly property var shareIface: root.currentDevice ? ShareDbusInterfaceFactory.create(root.currentDevice.id()) : null title: i18nd("kdeconnect-app", "Please choose a file") - currentFolder: shortcuts.home + currentFolder: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0] onAccepted: shareIface.shareUrl(fileDialog.fileUrl) } } diff --git a/smsapp/qml/SendingArea.qml b/smsapp/qml/SendingArea.qml index ccee19798..119bb4acb 100644 --- a/smsapp/qml/SendingArea.qml +++ b/smsapp/qml/SendingArea.qml @@ -5,6 +5,7 @@ */ import QtQuick +import QtCore import QtQuick.Controls as Controls import QtQuick.Layouts import org.kde.kirigami as Kirigami @@ -31,7 +32,7 @@ ColumnLayout { FileDialog { id: fileDialog - currentFolder: shortcuts.home + currentFolder: StandardPaths.standardLocations(StandardPaths.HomeLocation)[0] fileMode: FileDialog.OpenFiles onAccepted: {