[feat] Open unsupported documents as text (#5497)

This commit is contained in:
yparitcher
2019-10-23 17:15:30 -04:00
committed by Frans de Jonge
parent 0ecf42e995
commit 6c68df42ec
4 changed files with 49 additions and 10 deletions

View File

@@ -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)
})