Settings: fix prefetch toot option is unresponsive

This commit is contained in:
thislight 2024-08-05 18:57:43 +08:00
parent 44d7d7d8a5
commit 95fe954c5e
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E

View file

@ -94,16 +94,15 @@ const Settings: ParentComponent = () => {
<ListItem>
<ListItemText secondary="Regular">Fonts</ListItemText>
</ListItem>
<ListItem>
<ListItem onClick={(e) =>
$settings.setKey("prefetchTootsDisabled", !settings$().prefetchTootsDisabled)
}>
<ListItemText secondary="Tutu will download toots before you scroll to the position.">
Prefetch Toots
</ListItemText>
<ListItemSecondaryAction>
<Switch
checked={!settings$().prefetchTootsDisabled}
onChange={(e) =>
$settings.setKey("prefetchTootsDisabled", !e.target.checked)
}
/>
</ListItemSecondaryAction>
</ListItem>