mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Confirm button for cache deletion
This commit is contained in:
@@ -124,6 +124,11 @@ namespace VRCX
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DownloadProgress = -11;
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
DownloadProgress = 0;
|
DownloadProgress = 0;
|
||||||
|
|||||||
@@ -11725,9 +11725,23 @@ speechSynthesis.getVoices();
|
|||||||
cacheDirectory = this.VRChatConfigFile.cache_directory;
|
cacheDirectory = this.VRChatConfigFile.cache_directory;
|
||||||
}
|
}
|
||||||
await AssetBundleCacher.DeleteCache(cacheDirectory, ref.id, ref.version);
|
await AssetBundleCacher.DeleteCache(cacheDirectory, ref.id, ref.version);
|
||||||
|
this.getVRChatCacheSize();
|
||||||
this.updateVRChatCache();
|
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 () {
|
$app.methods.deleteAllVRChatCache = async function () {
|
||||||
await this.readVRChatConfigFile();
|
await this.readVRChatConfigFile();
|
||||||
var cacheDirectory = '';
|
var cacheDirectory = '';
|
||||||
|
|||||||
+3
-3
@@ -204,7 +204,7 @@ html
|
|||||||
.x-friend-item(v-for="user in searchUserResults" :key="user.id" @click="showUserDialog(user.id)")
|
.x-friend-item(v-for="user in searchUserResults" :key="user.id" @click="showUserDialog(user.id)")
|
||||||
template(v-once)
|
template(v-once)
|
||||||
.avatar
|
.avatar
|
||||||
//img(v-if="user.userIcon" v-lazy="user.userIcon") No userIcon from search, API bug?
|
img(v-if="user.userIcon" v-lazy="user.userIcon")
|
||||||
img(v-lazy="user.currentAvatarThumbnailImageUrl")
|
img(v-lazy="user.currentAvatarThumbnailImageUrl")
|
||||||
.detail
|
.detail
|
||||||
span.name(v-text="user.displayName" :class="user.trustClass")
|
span.name(v-text="user.displayName" :class="user.trustClass")
|
||||||
@@ -1501,7 +1501,7 @@ html
|
|||||||
el-form-item(label="Location")
|
el-form-item(label="Location")
|
||||||
el-input(v-model="newInstanceDialog.location" size="mini" readonly @click.native="$event.target.tagName === 'INPUT' && $event.target.select()")
|
el-input(v-model="newInstanceDialog.location" size="mini" readonly @click.native="$event.target.tagName === 'INPUT' && $event.target.select()")
|
||||||
el-form-item(label="URL")
|
el-form-item(label="URL")
|
||||||
el-input(ref="wtf" v-model="newInstanceDialog.url" size="mini" readonly @click.native="$event.target.tagName === 'INPUT' && $event.target.select()")
|
el-input(v-model="newInstanceDialog.url" size="mini" readonly @click.native="$event.target.tagName === 'INPUT' && $event.target.select()")
|
||||||
template(#footer)
|
template(#footer)
|
||||||
el-button(size="small" @click="makeHome(newInstanceDialog.location)") Make Home
|
el-button(size="small" @click="makeHome(newInstanceDialog.location)") Make Home
|
||||||
el-button(size="small" @click="showInviteDialog(newInstanceDialog.location)") Invite
|
el-button(size="small" @click="showInviteDialog(newInstanceDialog.location)") Invite
|
||||||
@@ -1537,7 +1537,7 @@ html
|
|||||||
el-tooltip(placement="top")
|
el-tooltip(placement="top")
|
||||||
template(#content)
|
template(#content)
|
||||||
span Clear Cache
|
span Clear Cache
|
||||||
el-button(type="default" @click="deleteAllVRChatCache" :disabled="isGameRunning" size="small" icon="el-icon-delete" circle style="margin-left:5px")
|
el-button(type="default" @click="showDeleteAllVRChatCacheConfirm" :disabled="isGameRunning" size="small" icon="el-icon-delete" circle style="margin-left:5px")
|
||||||
br
|
br
|
||||||
span Delete all old versions from cache
|
span Delete all old versions from cache
|
||||||
el-button(size="small" style="margin-left:5px" icon="el-icon-folder-delete" @click="sweepVRChatCache()") Sweep Cache
|
el-button(size="small" style="margin-left:5px" icon="el-icon-folder-delete" @click="sweepVRChatCache()") Sweep Cache
|
||||||
|
|||||||
Reference in New Issue
Block a user