diff --git a/defaults.lua b/defaults.lua index 396bf842e..a79437a94 100644 --- a/defaults.lua +++ b/defaults.lua @@ -34,6 +34,10 @@ DCREREADER_VIEW_MODE = "page" -- default to false DSHOWOVERLAP = false +-- show hidden files in filemanager +-- default to false +DSHOWHIDDENFILES = false + -- koptreader config defaults DKOPTREADER_CONFIG_FONT_SIZE = 1.0 -- range from 0.1 to 3.0 DKOPTREADER_CONFIG_TEXT_WRAP = 0 -- 1 = on, 0 = off diff --git a/frontend/ui/widget/filechooser.lua b/frontend/ui/widget/filechooser.lua index 86cd45afe..cb042f4d3 100644 --- a/frontend/ui/widget/filechooser.lua +++ b/frontend/ui/widget/filechooser.lua @@ -6,7 +6,7 @@ FileChooser = Menu:extend{ no_title = true, path = lfs.currentdir(), parent = nil, - show_hidden = false, + show_hidden = DSHOWHIDDENFILES, filter = function(filename) return true end, }