Explorar o código

Поправка

Book Pauk %!s(int64=6) %!d(string=hai) anos
pai
achega
ca99b2b7d3
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      client/components/Reader/TextPage/TextPage.vue

+ 5 - 4
client/components/Reader/TextPage/TextPage.vue

@@ -271,10 +271,6 @@ class TextPage extends Vue {
             await this.loadFonts();
 
         this.setBackground();
-        this.page1 = null;
-        this.page2 = null;
-        this.statusBar = null;
-
         this.draw();
 
         // шрифты хрен знает когда подгружаются, поэтому
@@ -346,7 +342,12 @@ class TextPage extends Vue {
 
                 this.parsed = this.book.parsed;
 
+                this.page1 = null;
+                this.page2 = null;
+                this.statusBar = null;
+
                 this.calcPropsAndLoadFonts();
+                
                 this.refreshTime();
                 if (this.lazyParseEnabled)
                     this.lazyParsePara();