[UX] FileManager menu: split Settings tab into 2 tabs (#3836)

pull/3837/head
poire-z 6 years ago committed by Frans de Jonge
parent 38a0519062
commit 6a997cf609

@ -24,6 +24,9 @@ function FileManagerMenu:init()
-- top menu
},
-- items in top menu
filemanager_settings = {
icon = "resources/icons/appbar.cabinet.files.png",
},
setting = {
icon = "resources/icons/appbar.settings.png",
},

@ -1,12 +1,13 @@
local order = {
["KOMenu:menu_buttons"] = {
"filemanager_settings",
"setting",
"tools",
"search",
"plus_menu",
"main",
},
setting = {
filemanager_settings = {
"filemanager_display_mode",
"show_hidden_files",
"items_per_page",
@ -15,8 +16,8 @@ local order = {
"reverse_sorting",
"----------------------------",
"start_with",
"screensaver",
"----------------------------",
},
setting = {
-- common settings
-- those that don't exist will simply be skipped during menu gen
"frontlight", -- if Device:hasFrontlight()
@ -24,6 +25,7 @@ local order = {
"----------------------------",
"network",
"screen",
"screensaver",
"document",
"----------------------------",
"language",

@ -337,7 +337,7 @@ function TouchMenuBar:switchToTab(index)
-- a little safety check
-- don't auto-activate a non-existent index
if index > #self.icon_widgets then
index = 1
index = #self.icon_widgets
end
self.icon_widgets[index].callback()
end

Loading…
Cancel
Save