From 9473c70dccf475089c12e07b320f610fd4914c0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Fern=C3=A1ndez?= <975883+pazos@users.noreply.github.com> Date: Sun, 6 Nov 2022 11:01:59 +0100 Subject: [PATCH] exporter: prevent exporting documents when they're not open (#9753) Fixes #9740 thanks to @hius07 for the hint! --- plugins/exporter.koplugin/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/exporter.koplugin/main.lua b/plugins/exporter.koplugin/main.lua index 65de9f16c..d73266ae5 100644 --- a/plugins/exporter.koplugin/main.lua +++ b/plugins/exporter.koplugin/main.lua @@ -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()