View Single Post
Old 03-13-2024, 09:37 AM   #60
llaumgui
Member
llaumgui began at the beginning.
 
llaumgui's Avatar
 
Posts: 16
Karma: 10
Join Date: Mar 2024
Location: Prades le Lez
Device: Vivlio Light HD (PocketBook Verse pro)
Quote:
Originally Posted by neil_swann80 View Post
The plugin will need updating to check the current active profile rather than assuming default.
Like that:

Code:
function PocketbookSync:getProfilId()
    local file = io.open("/mnt/ext1/system/profiles/.current", "r")
    if file then
        local content = file:read("*all")
        file:close()
        local profileId = tonumber(content)
        if profileId then
            return profileId
        else
            return 1
        end
    else
        return 1
    end
end
llaumgui is offline   Reply With Quote