diff --git a/main.lua b/main.lua index 7622a8a..ca036d6 100644 --- a/main.lua +++ b/main.lua @@ -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",