fix: crash when saving settings
This commit is contained in:
		
							parent
							
								
									4a49a74972
								
							
						
					
					
						commit
						5ba803f0a6
					
				
							
								
								
									
										6
									
								
								main.js
								
								
								
								
							
							
						
						
									
										6
									
								
								main.js
								
								
								
								
							| 
						 | 
					@ -1256,7 +1256,11 @@ function loadsettings()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (settings.tagfilter)
 | 
						if (settings.tagfilter)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		commands.find(c  => c.hint == "Add tag filter").hint = removetaghint();
 | 
							var command = commands.find(c  => c.hint == "Add tag filter");
 | 
				
			||||||
 | 
							if (command)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								command.hint = removetaghint();
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (settings.titlebydefault && title.hidden)
 | 
						if (settings.titlebydefault && title.hidden)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue