mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[feat] Open unsupported documents as text (#5497)
This commit is contained in:
committed by
Frans de Jonge
parent
0ecf42e995
commit
6c68df42ec
@@ -447,7 +447,7 @@ function ReaderUI:showReader(file, provider)
|
||||
return
|
||||
end
|
||||
|
||||
if not DocumentRegistry:hasProvider(file) then
|
||||
if not DocumentRegistry:hasProvider(file) and provider == nil then
|
||||
UIManager:show(InfoMessage:new{
|
||||
text = T(_("File '%1' is not supported."), file)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user