mirror of
https://github.com/OpenFusionProject/Client.git
synced 2024-11-23 05:50:09 +00:00
Compare commits
No commits in common. "51f0c06092517406e4f1a58c66b35097f269b8ea" and "01a4318db541f429ce0f6cdd32ac2102eec6417c" have entirely different histories.
51f0c06092
...
01a4318db5
@ -294,7 +294,7 @@ function restoreDefaultVersions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function editConfig() {
|
function editConfig() {
|
||||||
var jsonToModify = JSON.parse(remotefs.readFileSync(configPath));
|
var jsonToModify = JSON.parse(remotefs.readJsonSync(configPath));
|
||||||
|
|
||||||
jsonToModify["autoupdate-check"] = $("#editconfig-autoupdate").prop("checked");
|
jsonToModify["autoupdate-check"] = $("#editconfig-autoupdate").prop("checked");
|
||||||
jsonToModify["cache-swapping"] = $("#editconfig-cacheswapping").prop("checked");
|
jsonToModify["cache-swapping"] = $("#editconfig-cacheswapping").prop("checked");
|
||||||
@ -312,7 +312,7 @@ function editConfig() {
|
|||||||
remotefs.writeFileSync(configPath, JSON.stringify(jsonToModify, null, 4));
|
remotefs.writeFileSync(configPath, JSON.stringify(jsonToModify, null, 4));
|
||||||
|
|
||||||
loadConfig();
|
loadConfig();
|
||||||
if (shouldChangeRoot) handleCache("hash-check", null, "offline");
|
if (shouldChangeRoot) handleCache("hash-check");
|
||||||
}
|
}
|
||||||
|
|
||||||
function validateCacheLocation() {
|
function validateCacheLocation() {
|
||||||
|
@ -536,7 +536,7 @@
|
|||||||
class="form-control form-row w-75"
|
class="form-control form-row w-75"
|
||||||
id="editconfig-offlinecachelocation"
|
id="editconfig-offlinecachelocation"
|
||||||
type="text"
|
type="text"
|
||||||
oninput="validateCacheLocation()"
|
oninput="validateCacheLocator()"
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user