mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-14 12:23:52 +02:00
Cache worlds from search
This commit is contained in:
@@ -17207,6 +17207,16 @@ speechSynthesis.getVoices();
|
||||
});
|
||||
};
|
||||
|
||||
$app.methods.downloadSearchPage = function () {
|
||||
this.searchWorldResults.forEach((ref) => {
|
||||
API.getWorld({
|
||||
worldId: ref.id
|
||||
}).then((args) => {
|
||||
this.queueCacheDownload(args.ref, 'Search');
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
$app.data.downloadProgress = 0;
|
||||
$app.data.downloadInProgress = false;
|
||||
$app.data.downloadIsProcessing = false;
|
||||
|
||||
@@ -377,6 +377,7 @@ html
|
||||
el-dropdown-menu(#default="dropdown")
|
||||
el-dropdown-item(v-for="row in API.cachedConfig.dynamicWorldRows" :key="row.index" v-text="row.name" :command="row")
|
||||
el-checkbox(v-model="searchWorldLabs" style="margin-left:10px") Include community labs
|
||||
el-button(v-if="searchWorldResults.length > 0" @click="downloadSearchPage" icon="el-icon-download" size="small" style="margin-left:10px") Download All
|
||||
.x-friend-list
|
||||
.x-friend-item(v-for="world in searchWorldResults" :key="world.id" @click="showWorldDialog(world.id)")
|
||||
template(v-once)
|
||||
|
||||
Reference in New Issue
Block a user