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()
|
function Bookhoard:buildMainMenu()
|
||||||
local items = {}
|
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, {
|
table.insert(items, {
|
||||||
text = _("Server URL"),
|
text = _("Server URL"),
|
||||||
keep_menu_open = true,
|
keep_menu_open = true,
|
||||||
@@ -175,19 +191,6 @@ function Bookhoard:buildMainMenu()
|
|||||||
})
|
})
|
||||||
|
|
||||||
if self:isConfigured() then
|
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, {
|
table.insert(items, {
|
||||||
text = _("Device info"),
|
text = _("Device info"),
|
||||||
keep_menu_open = true,
|
keep_menu_open = true,
|
||||||
@@ -478,7 +481,7 @@ function Bookhoard:patchMenuOrderFile(filepath)
|
|||||||
local default_tools = {
|
local default_tools = {
|
||||||
"read_timer",
|
"read_timer",
|
||||||
"calibre",
|
"calibre",
|
||||||
"bookhoard",
|
"bookhoard_sync",
|
||||||
"exporter",
|
"exporter",
|
||||||
"statistics",
|
"statistics",
|
||||||
"progress_sync",
|
"progress_sync",
|
||||||
|
|||||||
Reference in New Issue
Block a user