Verified Commit cd025554 authored by WorldTeacher's avatar WorldTeacher
Browse files

feat: add Manual Matching placeholder to Import Reading History menu

Adds a 'Manual Matching' entry to the 'Import Reading History' submenu.
Clicking it shows a 5-second InfoMessage: 'WIP, sorry'.
The BookloreSync:manualMatching() function is a placeholder for future
manual book search and matching functionality.
parent 81a7ff35
Loading
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -1861,6 +1861,13 @@ function BookloreSync:addToMainMenu(menu_items)
                    self:syncRematchedSessions()
                end,
            },
            {
                text = _("Manual Matching"),
                help_text = _("Manually search for and match a book to a Booklore entry."),
                callback = function()
                    self:manualMatching()
                end,
            },
        },
    })
    
@@ -4943,6 +4950,16 @@ function BookloreSync:syncRematchedSessions()
                "failed:", total_failed, "not found:", total_not_found)
end

--[[--
Manual Matching — placeholder, work in progress.
--]]
function BookloreSync:manualMatching()
    UIManager:show(InfoMessage:new{
        text = _("WIP, sorry"),
        timeout = 5,
    })
end

--[[--
Show version information dialog
--]]