Поправки

This commit is contained in:
Book Pauk
2019-01-30 17:19:35 +07:00
parent ca99b2b7d3
commit dfe57ed20b

View File

@@ -266,11 +266,11 @@ class TextPage extends Vue {
async calcPropsAndLoadFonts(omitLoadFonts) { async calcPropsAndLoadFonts(omitLoadFonts) {
this.calcDrawProps(); this.calcDrawProps();
this.setBackground();
if (!omitLoadFonts) if (!omitLoadFonts)
await this.loadFonts(); await this.loadFonts();
this.setBackground();
this.draw(); this.draw();
// шрифты хрен знает когда подгружаются, поэтому // шрифты хрен знает когда подгружаются, поэтому
@@ -347,7 +347,7 @@ class TextPage extends Vue {
this.statusBar = null; this.statusBar = null;
this.calcPropsAndLoadFonts(); this.calcPropsAndLoadFonts();
this.refreshTime(); this.refreshTime();
if (this.lazyParseEnabled) if (this.lazyParseEnabled)
this.lazyParsePara(); this.lazyParsePara();