[feat] Open unsupported documents as text (#5497)
This commit is contained in:
1 parent
0ecf42e995
commit
6c68df42ec
4 files changed
+49
-10
No files matched your search
@@ -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