Disable emoticons when emoticons set has vanished
This commit is contained in:
		
							parent
							
								
									1620ff8471
								
							
						
					
					
						commit
						49136faf40
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -1668,7 +1668,8 @@ class Interface:
 | 
				
			||||||
		if not os.path.exists(path):
 | 
							if not os.path.exists(path):
 | 
				
			||||||
			# It's maybe a user theme
 | 
								# It's maybe a user theme
 | 
				
			||||||
			path = os.path.join(gajim.MY_EMOTS_PATH, emot_theme)
 | 
								path = os.path.join(gajim.MY_EMOTS_PATH, emot_theme)
 | 
				
			||||||
			if not os.path.exists(path): # theme doesn't exist
 | 
								if not os.path.exists(path): # theme doesn't exist, disable emoticons
 | 
				
			||||||
 | 
									gajim.config.set('emoticons_theme', '')
 | 
				
			||||||
				return
 | 
									return
 | 
				
			||||||
		sys.path.append(path)
 | 
							sys.path.append(path)
 | 
				
			||||||
		import emoticons
 | 
							import emoticons
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue