Settings: fix prefetch toot option is unresponsive
This commit is contained in:
		
							parent
							
								
									c611216e17
								
							
						
					
					
						commit
						ed901edea6
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue