Stop auto cache when joining world

This commit is contained in:
Natsumi
2021-09-22 01:25:58 +12:00
parent ee38e4b7ff
commit 3a9ac4b4aa
2 changed files with 7 additions and 4 deletions

View File

@@ -7440,7 +7440,8 @@ speechSynthesis.getVoices();
this.addGameLogEntry(gameLog, this.lastLocation.location, pushToTable);
};
$app.lastLocationDestinationTime = 0;
$app.data.lastLocationDestination = '';
$app.data.lastLocationDestinationTime = 0;
$app.methods.addGameLogEntry = function (gameLog, location, pushToTable) {
var userId = '';
@@ -7458,6 +7459,7 @@ speechSynthesis.getVoices();
this.cancelVRChatCacheDownload(gameLog.location);
this.clearNowPlaying();
}
this.lastLocationDestination = gameLog.location;
this.lastLocationDestinationTime = Date.parse(gameLog.dt);
var entry = {
created_at: gameLog.dt,
@@ -14610,7 +14612,7 @@ speechSynthesis.getVoices();
return;
}
if (
this.downloadCurrent.type !== 'Auto' ||
this.downloadCurrent.type !== 'Auto' &&
!this.cacheAutoDownloadHistory.has(assetUrl)
) {
this.cacheAutoDownloadHistory.add(assetUrl);
@@ -14740,7 +14742,8 @@ speechSynthesis.getVoices();
if (
!L.worldId ||
this.downloadQueue.has(L.worldId) ||
this.downloadCurrent.id === L.worldId
this.downloadCurrent.id === L.worldId ||
this.lastLocationDestination === location
) {
return;
}

View File

@@ -186,7 +186,7 @@ html
el-select(v-model="gameLogTable.filters[0].value" @change="saveTableFilters" multiple clearable collapse-tags style="flex:1" placeholder="Filter")
el-option(v-once v-for="type in ['Location', 'OnPlayerJoined', 'OnPlayerLeft', 'PortalSpawn', 'AvatarChange', 'Event', 'VideoPlay']" :key="type" :label="type" :value="type")
el-input(v-model="gameLogTable.filters[1].value" placeholder="Search" style="flex:none;width:150px;margin:0 10px")
el-tooltip(placement="bottom" content="Reset game log" :disabled="hideTooltips")
el-tooltip(placement="bottom" content="Reload game log" :disabled="hideTooltips")
el-button(type="default" @click="refreshEntireGameLog" icon="el-icon-refresh" circle style="flex:none")
el-table-column(label="Date" prop="created_at" sortable="custom" width="90")
template(v-once #default="scope")