Push/Pull first in menu, fix menu order ID to bookhoard_sync
This commit is contained in:
@@ -159,6 +159,22 @@ end
|
||||
function Bookhoard:buildMainMenu()
|
||||
local items = {}
|
||||
|
||||
if self:isConfigured() then
|
||||
table.insert(items, {
|
||||
text = _("Push progress from this device"),
|
||||
callback = function()
|
||||
self:updateProgress(true, true)
|
||||
end,
|
||||
})
|
||||
table.insert(items, {
|
||||
text = _("Pull progress from server"),
|
||||
callback = function()
|
||||
self:getProgress(true, true)
|
||||
end,
|
||||
separator = true,
|
||||
})
|
||||
end
|
||||
|
||||
table.insert(items, {
|
||||
text = _("Server URL"),
|
||||
keep_menu_open = true,
|
||||
@@ -175,19 +191,6 @@ function Bookhoard:buildMainMenu()
|
||||
})
|
||||
|
||||
if self:isConfigured() then
|
||||
table.insert(items, {
|
||||
text = _("Push progress from this device"),
|
||||
callback = function()
|
||||
self:updateProgress(true, true)
|
||||
end,
|
||||
})
|
||||
table.insert(items, {
|
||||
text = _("Pull progress from server"),
|
||||
callback = function()
|
||||
self:getProgress(true, true)
|
||||
end,
|
||||
separator = true,
|
||||
})
|
||||
table.insert(items, {
|
||||
text = _("Device info"),
|
||||
keep_menu_open = true,
|
||||
@@ -478,7 +481,7 @@ function Bookhoard:patchMenuOrderFile(filepath)
|
||||
local default_tools = {
|
||||
"read_timer",
|
||||
"calibre",
|
||||
"bookhoard",
|
||||
"bookhoard_sync",
|
||||
"exporter",
|
||||
"statistics",
|
||||
"progress_sync",
|
||||
|
||||
Reference in New Issue
Block a user