()
| 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); |
no test coverage detected