Skip to content

Commit 065aebe

Browse files
committed
Support opening directories in the list view
1 parent 9778e72 commit 065aebe

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

po/io.papyros.files.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: \n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2015-02-20 21:26-0600\n"
11+
"POT-Creation-Date: 2015-02-20 21:33-0600\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -25,7 +25,7 @@ msgstr ""
2525
msgid "Device"
2626
msgstr ""
2727

28-
#: ../src/app/qml/components/FolderListView.qml:145
28+
#: ../src/app/qml/components/FolderListView.qml:150
2929
msgid "No files"
3030
msgstr ""
3131

src/app/qml/components/FolderListView.qml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,12 @@ Item {
9292

9393
model: folderModel.model
9494
delegate: ListItem.Standard {
95-
property string path: folderModel.path + '/' + model.fileName
95+
96+
onTriggered: {
97+
if (model.isDir) {
98+
folderModel.goTo(model.filePath)
99+
}
100+
}
96101

97102
RowLayout {
98103
anchors {
@@ -108,7 +113,7 @@ Item {
108113
Layout.alignment: Qt.AlignVCenter
109114
Layout.fillWidth: true
110115

111-
text: folderModel.pathTitle(path)
116+
text: folderModel.pathTitle(model.filePath)
112117
style: "subheading"
113118
elide: Text.ElideRight
114119
}

0 commit comments

Comments
 (0)