From b96edc6c8f3064c9f31f1569fc6b94f9c095ee3e Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 1 Jun 2026 21:45:34 -0400 Subject: [PATCH] Push/Pull first in menu, fix menu order ID to bookhoard_sync --- main.lua | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) 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",