Commit 10613995 authored by Dimitris Kardarakos's avatar Dimitris Kardarakos
Browse files

Add option to show hidden files on mobile

New action has been added to the mobile file picker; when triggered, it will toggle the display of hidden files.
parent b378d0b0
......@@ -21,6 +21,7 @@ Kirigami.ScrollablePage {
property var nameFilters: []
property var mimeTypeFilters: []
property alias folder: dirModel.folder
property bool showHiddenFiles: false
property string currentFile
property string acceptLabel
property bool selectFolder
......@@ -126,7 +127,7 @@ Kirigami.ScrollablePage {
DirModel {
id: dirModel
showDotFiles: false
showDotFiles: root.showHiddenFiles
mimeFilters: root.mimeTypeFilters
onLastErrorChanged: errorMessage.visible = true
onFolderChanged: errorMessage.visible = false
......
......@@ -65,6 +65,14 @@ Kirigami.ApplicationWindow {
checkable: true
text: i18n("Filter filetype")
checked: true
},
Kirigami.Action {
icon.name: "view-hidden"
text: i18n("Show hidden files")
checkable: true
checked: filePicker.showHiddenFiles
onToggled: filePicker.showHiddenFiles = checked
}
]
......
......@@ -99,6 +99,7 @@ bool DirModel::showDotFiles() const
void DirModel::setShowDotFiles(bool showDotFiles)
{
m_lister->setShowingDotFiles(showDotFiles);
m_lister->emitChanges();
emit showDotFilesChanged();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment