Migrate history folder, FileManagerHistory uses own history.lua file and ReadHistory component

This commit is contained in:
Zijie He
2016-04-18 15:38:14 -07:00
committed by Hzj_jie
parent 2dbfcdf207
commit 667e8834ad
4 changed files with 133 additions and 46 deletions

View File

@@ -329,6 +329,7 @@ end
function ReaderUI:showReader(file)
DEBUG("show reader ui")
require("readhistory"):addItem(file)
if lfs.attributes(file, "mode") ~= "file" then
UIManager:show(InfoMessage:new{
text = T( _("File '%1' does not exist."), file)