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

This commit is contained in:
yparitcher authored and Frans de Jonge committed 2019-10-23 23:15:30 +02:00
1 parent 0ecf42e995
commit 6c68df42ec
4 files changed
+49 -10

No files matched your search

+1 -1
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)
})