1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-08 08:45:45 +02:00

settings: improve FolderSettings

Moreover, this is not working correctly due to
https://bugreports.qt.io/browse/QTBUG-76860
But, migration to Qt 6.2.1 is in progress (actually in review), we
can let this as it is.

Change-Id: I1143fe25161af334ab7424adcb69dfd4a17022cb
GitLab: #620
This commit is contained in:
Sébastien Blin 2021-12-13 11:05:21 -05:00
parent 9ee7c08362
commit 5e2acee040
2 changed files with 4 additions and 2 deletions

View file

@ -31,7 +31,7 @@ ColumnLayout {
id:root
property int itemWidth
property string recordPath: UtilsAdapter.getDirDocument()
property string recordPath: AVModel.getRecordPath()
onRecordPathChanged: {
if(recordPath === "") return
@ -46,6 +46,7 @@ ColumnLayout {
title: JamiStrings.selectFolder
currentFolder: StandardPaths.writableLocation(StandardPaths.HomeLocation)
options: FolderDialog.ShowDirsOnly
onAccepted: {
var dir = UtilsAdapter.getAbsPath(folder.toString())

View file

@ -36,7 +36,7 @@ ColumnLayout {
onDownloadPathChanged: {
if(downloadPath === "") return
UtilsAdapter.setDownloadPath(downloadPath)
UtilsAdapter.setDownloadPath(downloadPath)
}
FolderDialog {
@ -44,6 +44,7 @@ ColumnLayout {
title: JamiStrings.selectFolder
currentFolder: StandardPaths.writableLocation(StandardPaths.DownloadLocation)
options: FolderDialog.ShowDirsOnly
onAccepted: {
var dir = UtilsAdapter.getAbsPath(folder.toString())