exporter: prevent exporting documents when they're not open (#9753)

Fixes #9740

thanks to @hius07 for the hint!
This commit is contained in:
Martín Fernández authored and GitHub committed 2022-11-06 11:01:59 +01:00
1 parent cd69382934
commit 9473c70dcc
1 file changed
+1 -1
+1 -1
View File
@@ -127,7 +127,7 @@ function Exporter:isReady()
end
function Exporter:isDocReady()
return self.ui and self.ui.document and self.view
return self.ui and self.ui.document and self.view or false
end
function Exporter:isReadyToExport()