mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
@@ -76,15 +76,5 @@ common_settings.save_document = {
|
||||
},
|
||||
}
|
||||
common_settings.language = Language:getLangMenuTable()
|
||||
common_settings.show_advanced_options = {
|
||||
text = _("Show advanced options"),
|
||||
checked_func = function() return G_reader_settings:readSetting("show_advanced") end,
|
||||
callback = function()
|
||||
local show_advanced = G_reader_settings:readSetting("show_advanced") or false
|
||||
G_reader_settings:saveSetting("show_advanced", not show_advanced)
|
||||
end
|
||||
}
|
||||
|
||||
|
||||
|
||||
return common_settings
|
||||
|
||||
@@ -24,8 +24,6 @@ local order = {
|
||||
"save_document",
|
||||
"----------------------------",
|
||||
"language",
|
||||
"----------------------------",
|
||||
"show_advanced_options",
|
||||
-- end common settings
|
||||
},
|
||||
tools = {
|
||||
|
||||
@@ -40,7 +40,6 @@ local order = {
|
||||
"----------------------------",
|
||||
"djvu_render_mode",
|
||||
"status_bar",
|
||||
"show_advanced_options",
|
||||
},
|
||||
tools = {
|
||||
"calibre_wireless_connection",
|
||||
|
||||
@@ -163,7 +163,9 @@ function ConfigOption:init()
|
||||
table.insert(vertical_group, VerticalSpan:new{
|
||||
width = Screen:scaleBySize(default_option_padding),
|
||||
})
|
||||
local show_advanced = G_reader_settings:readSetting("show_advanced") or false
|
||||
-- @TODO restore setting when there are more advanced settings
|
||||
--local show_advanced = G_reader_settings:readSetting("show_advanced") or false
|
||||
local show_advanced = true
|
||||
for c = 1, #self.options do
|
||||
local show_default = not self.options[c].advanced or show_advanced
|
||||
if self.options[c].show ~= false and show_default then
|
||||
|
||||
Reference in New Issue
Block a user