]> git.scottworley.com Git - vopamoi/commitdiff
Hide task list during replay
authorScott Worley <scottworley@scottworley.com>
Sat, 5 Mar 2022 23:35:32 +0000 (15:35 -0800)
committerScott Worley <scottworley@scottworley.com>
Sat, 5 Mar 2022 23:35:36 +0000 (15:35 -0800)
So we don't trigger restyle & layout while bulk-importing.

vopamoi.ts

index 8e7280964e076c45dc740cae6661e09ccaf6fe00..f550fa1cbbbd1ea9fa309a60d0d5e549dd5aacf0 100644 (file)
@@ -207,6 +207,7 @@ function Log(prefix: string = "vp-") {
     },
 
     replay: function () {
     },
 
     replay: function () {
+      document.getElementById("tasks")!.style.display = "none";
       while (true) {
         const entry = window.localStorage.getItem(`${prefix}${next_log_index}`);
         if (entry === null) {
       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++;
       }
         this.apply(entry);
         next_log_index++;
       }
+      document.getElementById("tasks")!.style.display = "";
     },
   };
 }
     },
   };
 }