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