Fix gameLog notify

This commit is contained in:
Natsumi
2020-12-02 22:38:05 +13:00
committed by pypy
parent 26f2d29bba
commit 6bcd9a73fd

View File

@@ -4458,6 +4458,7 @@ import gameLogService from './service/gamelog.js'
$app.data.gameLogTable = {
data: [],
lastRunLength: 0,
filters: [
{
prop: 'type',
@@ -4502,9 +4503,10 @@ import gameLogService from './service/gamelog.js'
await this.updateGameLog();
this.sweepGameLog();
if (this.gameLogTable.data.length > 0) {
if (this.gameLogTable.data.length > this.gameLogTable.lastRunLength) {
this.notifyMenu('gameLog');
}
this.gameLogTable.lastRunLength = this.gameLogTable.data.length;
this.updateSharedFeed();
}