diff --git a/main.lua b/main.lua index ca036d6..3eef056 100644 --- a/main.lua +++ b/main.lua @@ -884,6 +884,16 @@ function Bookhoard:updateProgress(ensure_networking, interactive) if not self.settings.sync_progress then return end + if not self.ui.document then + if interactive then + UIManager:show(InfoMessage:new{ + text = _("No document open."), + timeout = 3, + }) + end + return + end + local now = UIManager:getElapsedTimeSinceBoot() if not interactive and now - self.push_timestamp <= API_CALL_DEBOUNCE_DELAY then return