From 2967f1329737d130d3f5a4fc36c2217b8943b9e3 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Sep 2020 07:44:35 +0530 Subject: [PATCH] Prevent duplication of controls help if shown multiple times in one session --- src/pyj/read_book/view.pyj | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pyj/read_book/view.pyj b/src/pyj/read_book/view.pyj index 16613c4679..6d8500b0cd 100644 --- a/src/pyj/read_book/view.pyj +++ b/src/pyj/read_book/view.pyj @@ -87,6 +87,7 @@ def show_controls_help(): window.setTimeout(focus, 10) if runtime.is_standalone_viewer: + clear(container) container.appendChild(E.div( style='margin: 1rem', E.div(style='margin-top: 1rem'),