mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +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 () {
|
$app.methods.downloadVRChatCache = async function () {
|
||||||
if (this.downloadQueue.size === 0) {
|
if (this.downloadQueue.size === 0) {
|
||||||
return;
|
return;
|
||||||
@@ -13957,6 +13959,16 @@ speechSynthesis.getVoices();
|
|||||||
this.downloadVRChatCache();
|
this.downloadVRChatCache();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (
|
||||||
|
this.downloadCurrent.type === 'Auto' &&
|
||||||
|
this.cacheAutoDownloadHistory.has(assetUrl)
|
||||||
|
) {
|
||||||
|
this.downloadCurrent = {};
|
||||||
|
this.downloadInProgress = false;
|
||||||
|
this.downloadVRChatCache();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.cacheAutoDownloadHistory.add(assetUrl);
|
||||||
try {
|
try {
|
||||||
var args = await API.getBundles(fileId);
|
var args = await API.getBundles(fileId);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user