Filemanagerutil: let abbreviate manage extra slash (#9785)

This commit is contained in:
hius07
2022-11-14 03:20:26 +02:00
committed by GitHub
parent 01975366b6
commit 06cec98d09

View File

@@ -17,7 +17,7 @@ function filemanagerutil.abbreviate(path)
if not path then return "" end
if G_reader_settings:nilOrTrue("shorten_home_dir") then
local home_dir = G_reader_settings:readSetting("home_dir") or filemanagerutil.getDefaultDir()
if path == home_dir then
if path == home_dir or path == home_dir .. "/" then
return _("Home")
end
local len = home_dir:len()