remove unnecessary if
This commit is contained in:
		
							parent
							
								
									c742cf8e10
								
							
						
					
					
						commit
						8405fc8dbf
					
				
					 1 changed files with 2 additions and 4 deletions
				
			
		| 
						 | 
					@ -406,10 +406,8 @@ class Preferences_window:
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
	def on_sounds_treemodel_row_changed(self, model, path, iter):
 | 
						def on_sounds_treemodel_row_changed(self, model, path, iter):
 | 
				
			||||||
		sound_event = model.get_value(iter, 0)
 | 
							sound_event = model.get_value(iter, 0)
 | 
				
			||||||
		if model[path][1]:
 | 
							gajim.config.set_per('soundevents', sound_event, 'enabled',
 | 
				
			||||||
			gajim.config.set_per('soundevents', sound_event, 'enabled', True)
 | 
										model[path][1] == True)
 | 
				
			||||||
		else:
 | 
					 | 
				
			||||||
			gajim.config.set_per('soundevents', sound_event, 'enabled', False)
 | 
					 | 
				
			||||||
		gajim.config.set_per('soundevents', sound_event, 'path', \
 | 
							gajim.config.set_per('soundevents', sound_event, 'path', \
 | 
				
			||||||
			model.get_value(iter, 2))
 | 
								model.get_value(iter, 2))
 | 
				
			||||||
		self.plugin.save_config()
 | 
							self.plugin.save_config()
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue