Skip to content

Commit

Permalink
fixed cache issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Creckeryop committed Feb 8, 2020
1 parent 5b8d340 commit e2a2913
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/assets/libs/cache.lua
Expand Up @@ -45,6 +45,7 @@ function Cache.setBookmark(Chapter, mode)
if System.doesFileExist("ux0:data/noboru/cache/"..mkey.."/bookmarks.dat") then
System.deleteFile("ux0:data/noboru/cache/"..mkey.."/bookmarks.dat")
end
Cache.addManga(Chapter.Manga)
local fh = System.openFile("ux0:data/noboru/cache/"..mkey.."/bookmarks.dat", FCREATE)
local serialized_bookmarks = "local " .. table.serialize(bookmarks[mkey], "bookmarks") .. "\nreturn bookmarks"
System.writeFile(fh, serialized_bookmarks, serialized_bookmarks:len())
Expand Down
4 changes: 2 additions & 2 deletions source/assets/libs/settings.lua
Expand Up @@ -3,7 +3,7 @@ Settings = {
NSFW = false,
Orientation = "Horizontal",
ZoomReader = "Smart",
Version = 0.30,
Version = 0.31,
KeyType = "EU",
ReaderDirection = "RIGHT",
HideInOffline = true
Expand Down Expand Up @@ -234,7 +234,7 @@ function Settings:checkUpdate(showMessage)
changes = body:gsub("\n+%s-(%S)","\n%1"):gsub("<li>"," * "):gsub("<[^>]->",""):gsub("\n\n","\n"):gsub("^\n",""):gsub("%s+$","") or ""
if Settings.LateVersion and Settings.Version and tonumber(Settings.LateVersion) > tonumber(Settings.Version) then
if showMessage then
Changes.load(Language[Settings.Language].NOTIFICATIONS.NEW_UPDATE_AVAILABLE..": "..Settings.LateVersion.."\n"..Language[Settings.Language].SETTINGS.CurrentVersionIs..Settings.Version.."\n\n".. changes)
Changes.load(Language[Settings.Language].NOTIFICATIONS.NEW_UPDATE_AVAILABLE.." : "..Settings.LateVersion.."\n"..Language[Settings.Language].SETTINGS.CurrentVersionIs..Settings.Version.."\n\n".. changes)
else
Notifications.push(Language[Settings.Language].NOTIFICATIONS.NEW_UPDATE_AVAILABLE.." "..Settings.LateVersion)
end
Expand Down

0 comments on commit e2a2913

Please sign in to comment.