added more proper initial check handling

This commit is contained in:
FinnHornhoover 2023-11-12 16:27:11 +03:00
parent 1c2cf41e97
commit 171177b606
2 changed files with 4 additions and 6 deletions

View File

@ -375,11 +375,6 @@ function loadCacheList() {
storageLoadingComplete(cacheSizes);
}
function startHashCheck() {
// only run once
if (!cacheSizes) handleCache("hash-check");
}
function getCacheElemID(versionString, cacheMode, elementName) {
return [versionString, cacheMode, "cache", elementName].filter(function (value) {
return typeof value !== "undefined";
@ -899,3 +894,7 @@ $("#of-deleteversionmodal").on("show.bs.modal", function (e) {
})[0];
$("#deleteversion-versionname").html(result.name);
});
$("#of-editcacheconfigmodal").on("show.bs.modal", function (e) {
if (!cacheSizes) handleCache("hash-check");
});

View File

@ -117,7 +117,6 @@
type="button"
title="Edit Game Builds"
data-target="#of-editcacheconfigmodal"
onclick="startHashCheck()"
>
<i class="fas fa-database"></i>
</button>