add silent setting when writing time update setting

This commit is contained in:
buzz-lightsnack-2007 2024-04-28 13:00:27 +08:00
parent 81667f3bb4
commit 3927a04881

View file

@ -67,7 +67,7 @@ export default class fc {
DURATION_PREFERENCES[`duration`] = 24; DURATION_PREFERENCES[`duration`] = 24;
// Write it. // Write it.
await write([`settings`, `sync`], DURATION_PREFERENCES, -1); await write([`settings`, `sync`], DURATION_PREFERENCES, -1, {"silent": true});
}; };
if (((typeof DURATION_PREFERENCES).includes(`obj`) && DURATION_PREFERENCES != null && !Array.isArray(DURATION_PREFERENCES)) ? ((DURATION_PREFERENCES[`duration`]) ? (DURATION_PREFERENCES[`duration`] > 0) : false) : false) { if (((typeof DURATION_PREFERENCES).includes(`obj`) && DURATION_PREFERENCES != null && !Array.isArray(DURATION_PREFERENCES)) ? ((DURATION_PREFERENCES[`duration`]) ? (DURATION_PREFERENCES[`duration`] > 0) : false) : false) {