mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
IconWidget: fix user icons directory path (#7019)
Should be `DataStorage:getDataDir()` instead of `DataStorage:getSettingsDir()`. (`koreader/icons/` instead of `koreader/settings/icons/`) https://github.com/koreader/koreader/pull/6977#discussion_r546375434
This commit is contained in:
@@ -8,7 +8,7 @@ local Screen = require("device").screen
|
||||
|
||||
-- Directories to look for icons by name, with any of the accepted suffixes
|
||||
local ICONS_DIRS = {}
|
||||
local user_icons_dir = DataStorage:getSettingsDir() .. "/icons"
|
||||
local user_icons_dir = DataStorage:getDataDir() .. "/icons"
|
||||
if lfs.attributes(user_icons_dir, "mode") == "directory" then
|
||||
table.insert(ICONS_DIRS, user_icons_dir)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user