add version information in reader menu

This should implement #315.
This commit is contained in:
chrox
2013-12-28 12:44:51 +08:00
parent ee8838960b
commit fefa0a3507
4 changed files with 69 additions and 46 deletions

View File

@@ -74,6 +74,14 @@ function ReaderMenu:setUpdateItemTable()
})
end
})
table.insert(self.tab_item_table.main, {
text = _("Version"),
callback = function()
UIManager:show(InfoMessage:new{
text = io.open("git-rev", "r"):read(),
})
end
})
end
function ReaderMenu:onShowReaderMenu()