@@ -4062,6 +4062,10 @@ function BookloreSync:addToMainMenu(menu_items)
local sync_mode_menu = {
text = _("Sync Mode"),
help_text = _("Choose between automatic syncing and manual queue-only mode."),
sub_item_table = {
{
text = _("Networking"),
help_text = _("Configure WiFi connection behavior for sync actions."),
sub_item_table = {
{
text_func = function()
@@ -4076,6 +4080,14 @@ function BookloreSync:addToMainMenu(menu_items)
Settings:configureNetworkConnectTimeout(self)
end,
},
{
text = _("Sync delay after connect"),
help_text = _("Wait this many seconds after network becomes connected before running sync requests. Useful on devices where routing/DNS is not immediately ready after WiFi connect."),
keep_menu_open = true,
callback = function()
Settings:configureSyncDelayAfterConnect(self)
end,
},
{
text = _("Run until connect"),
help_text = _("Disable plugin-side connect timeout and wait until WiFi connects or the underlying network stack times out on its own."),
@@ -4089,13 +4101,7 @@ function BookloreSync:addToMainMenu(menu_items)
self.settings:flush()
end,
},
{
text = _("Sync delay after connect"),
help_text = _("Wait this many seconds after network becomes connected before running sync requests. Useful on devices where routing/DNS is not immediately ready after WiFi connect."),