mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-17 03:20:06 +00:00
fixed added versions not showing up immediately
This commit is contained in:
parent
e11023df54
commit
c3dc79b42a
@ -331,6 +331,10 @@ function validateCacheLocation() {
|
|||||||
function loadGameVersions() {
|
function loadGameVersions() {
|
||||||
var versionJson = remotefs.readJsonSync(versionsPath);
|
var versionJson = remotefs.readJsonSync(versionsPath);
|
||||||
versionArray = versionJson["versions"];
|
versionArray = versionJson["versions"];
|
||||||
|
|
||||||
|
$("#addserver-versionselect").empty();
|
||||||
|
$("#editserver-versionselect").empty();
|
||||||
|
|
||||||
$.each(versionArray, function (key, value) {
|
$.each(versionArray, function (key, value) {
|
||||||
$(new Option(value.name, "val")).appendTo("#addserver-versionselect");
|
$(new Option(value.name, "val")).appendTo("#addserver-versionselect");
|
||||||
$(new Option(value.name, "val")).appendTo("#editserver-versionselect");
|
$(new Option(value.name, "val")).appendTo("#editserver-versionselect");
|
||||||
@ -384,8 +388,8 @@ function loadServerList() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function loadCacheList() {
|
function loadCacheList() {
|
||||||
var versionjson = remotefs.readJsonSync(versionsPath);
|
// we might want to use a new version right away, so reload them
|
||||||
versionArray = versionjson["versions"];
|
loadGameVersions();
|
||||||
|
|
||||||
if (!defaultHashes) {
|
if (!defaultHashes) {
|
||||||
defaultHashes = remotefs.readJsonSync(path.join(
|
defaultHashes = remotefs.readJsonSync(path.join(
|
||||||
|
Loading…
Reference in New Issue
Block a user