mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-19 06:43:51 +02:00
Stop auto cacher from starting after being canceled from joining a world
This commit is contained in:
@@ -13908,6 +13908,8 @@ speechSynthesis.getVoices();
|
||||
});
|
||||
};
|
||||
|
||||
$app.data.cacheAutoDownloadHistory = new Set();
|
||||
|
||||
$app.methods.downloadVRChatCache = async function () {
|
||||
if (this.downloadQueue.size === 0) {
|
||||
return;
|
||||
@@ -13957,6 +13959,16 @@ speechSynthesis.getVoices();
|
||||
this.downloadVRChatCache();
|
||||
return;
|
||||
}
|
||||
if (
|
||||
this.downloadCurrent.type === 'Auto' &&
|
||||
this.cacheAutoDownloadHistory.has(assetUrl)
|
||||
) {
|
||||
this.downloadCurrent = {};
|
||||
this.downloadInProgress = false;
|
||||
this.downloadVRChatCache();
|
||||
return;
|
||||
}
|
||||
this.cacheAutoDownloadHistory.add(assetUrl);
|
||||
try {
|
||||
var args = await API.getBundles(fileId);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user