fix(live-preview): Don't focus when it shouldn't for auto-preview

This commit is contained in:
hedy
2023-11-30 19:07:25 +08:00
parent bf7d313393
commit 5d5f891afb

View File

@@ -310,7 +310,10 @@ function LivePreview:show()
return return
end end
if node == self.last_node then if node == self.last_node and not self.conf.auto_preview then
-- Focus is called manually through keybinding from sidebar.lua. This
-- should only be used on second toggle_preview call in the case of no
-- auto-preview.
self:focus() self:focus()
else else
self:update(node) self:update(node)