mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 00:03:51 +02:00
Confirm button for cache deletion
This commit is contained in:
@@ -11725,9 +11725,23 @@ speechSynthesis.getVoices();
|
||||
cacheDirectory = this.VRChatConfigFile.cache_directory;
|
||||
}
|
||||
await AssetBundleCacher.DeleteCache(cacheDirectory, ref.id, ref.version);
|
||||
this.getVRChatCacheSize();
|
||||
this.updateVRChatCache();
|
||||
};
|
||||
|
||||
$app.methods.showDeleteAllVRChatCacheConfirm = function () {
|
||||
this.$confirm(`Continue? Delete all VRChat cache`, 'Confirm', {
|
||||
confirmButtonText: 'Confirm',
|
||||
cancelButtonText: 'Cancel',
|
||||
type: 'info',
|
||||
callback: (action) => {
|
||||
if (action === 'confirm') {
|
||||
this.deleteAllVRChatCache();
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
$app.methods.deleteAllVRChatCache = async function () {
|
||||
await this.readVRChatConfigFile();
|
||||
var cacheDirectory = '';
|
||||
|
||||
Reference in New Issue
Block a user