MCPcopy Create free account
hub / github.com/PleasureTools/joyBox / Load

Method Load

backend/Src/Settings.ts:27–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 this.UpdateProperty(Settings.DOWNLOAD_SPEED_QUOTA_PROP, quota);
26 }
27 private Load() {
28 const settings = this.storage.FetchSettings();
29 this.storageQuota = settings.storageQuota;
30 this.instanceQuota = settings.instanceQuota;
31 this.downloadSpeedQuota = settings.downloadSpeedQuota;
32 }
33 private UpdateProperty<V>(prop: typeof Settings.PropList[number], value: string | number) {
34 if (value !== this.GetLocal(prop)) {
35 this.SetLocal(prop, value);

Callers 1

constructorMethod · 0.95

Calls 1

FetchSettingsMethod · 0.80

Tested by

no test coverage detected