Settings: fix prefetch toot option is unresponsive

This commit is contained in:
thislight 2024-08-05 18:57:43 +08:00
parent c611216e17
commit ed901edea6

View file

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