Добавил мерцание кнопки и сообщеия в статус баре при загрузке книги из кеша

This commit is contained in:
Book Pauk
2019-01-27 11:59:50 +07:00
parent be8a66ac39
commit 67eb9316dc
2 changed files with 54 additions and 2 deletions

View File

@@ -458,13 +458,27 @@ class TextPage extends Vue {
i--;
i = (i > lines.length - 1 ? lines.length - 1 : i);
if (i >= 0) {
let message = this.statusBarMessage;
if (!message)
message = this.title;
this.statusBar = this.drawHelper.drawStatusBar(this.statusBarTop, this.statusBarHeight,
lines[i].end, this.parsed.textLength, this.title);
lines[i].end, this.parsed.textLength, message);
this.bookPosSeen = lines[i].end;
}
}
}
blinkCachedLoadMessage(state) {
if (state === 'finish') {
this.statusBarMessage = '';
} else if (state) {
this.statusBarMessage = 'Книга загружена из кеша';
} else {
this.statusBarMessage = ' ';
}
this.drawStatusBar();
}
async refreshTime() {
if (!this.timeRefreshing) {
this.timeRefreshing = true;