From: Scott Worley Date: Sat, 5 Mar 2022 23:35:32 +0000 (-0800) Subject: Hide task list during replay X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/9db534f6ab9420b8fd5836e791dbe09abb0a92d8?ds=inline;hp=f36b20d6c8aff57f2582ffc800d20f03ab0bb44c Hide task list during replay So we don't trigger restyle & layout while bulk-importing. --- diff --git a/vopamoi.ts b/vopamoi.ts index 8e72809..f550fa1 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -207,6 +207,7 @@ function Log(prefix: string = "vp-") { }, replay: function () { + document.getElementById("tasks")!.style.display = "none"; while (true) { const entry = window.localStorage.getItem(`${prefix}${next_log_index}`); if (entry === null) { @@ -215,6 +216,7 @@ function Log(prefix: string = "vp-") { this.apply(entry); next_log_index++; } + document.getElementById("tasks")!.style.display = ""; }, }; }