mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-01 03:43:46 +08:00
Qt: cache home screen state (#20395)
* cache drive stats * don't parse response if it's the same as previous * remove blank line * cleanup * update stats in place * validate json * add DriveStats to params.pyx * cleanup * cleanup * remove //#include * simplify * add cache to RequestRepeater * rename CachedDriveStats to ApiCacheDriveStats * rename ApiCacheDriveStats to ApiCache_DriveStats Co-authored-by: Willem Melching <willem.melching@gmail.com> old-commit-hash: 80ae6a7e1b1d1ec231c4719b677fd08b22818ce1
This commit is contained in:
@@ -15,6 +15,7 @@ cdef enum TxType:
|
||||
|
||||
keys = {
|
||||
b"AccessToken": [TxType.CLEAR_ON_MANAGER_START],
|
||||
b"ApiCache_DriveStats": [TxType.PERSISTENT],
|
||||
b"AthenadPid": [TxType.PERSISTENT],
|
||||
b"CalibrationParams": [TxType.PERSISTENT],
|
||||
b"CarBatteryCapacity": [TxType.PERSISTENT],
|
||||
|
||||
Reference in New Issue
Block a user