Добавил мерцание кнопки и сообщеия в статус баре при загрузке книги из кеша
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user