trayicon_notification_on_new_messages advanced setting
This commit is contained in:
		
							parent
							
								
									128f6e1e67
								
							
						
					
					
						commit
						a39e1acab6
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -1144,8 +1144,8 @@ class Chat: | |||
| 				if text.find(self.nicks[jid]) == -1: | ||||
| 					return | ||||
| 			self.nb_unread[jid] += 1 | ||||
| 			if self.plugin.systray_enabled and gajim.config.get('usetabbedchat'): | ||||
| 				# if we 'pop it up' when we receive * [n] is enough | ||||
| 			if self.plugin.systray_enabled and gajim.config.get( | ||||
| 				'trayicon_notification_on_new_messages'): | ||||
| 				self.plugin.systray.add_jid(jid, self.account) | ||||
| 			self.redraw_tab(jid) | ||||
| 			self.show_title() | ||||
|  |  | |||
|  | @ -132,6 +132,7 @@ class Config: | |||
| 		# IEC standard says KiB = 1024 bytes KB = 1000 bytes | ||||
| 		'use_kib_mib': [opt_bool, False], | ||||
| 		'notify_on_all_muc_messages': [opt_bool, False], | ||||
| 		'trayicon_notification_on_new_messages': [opt_bool, True], | ||||
| 	} | ||||
| 
 | ||||
| 	__options_per_key = { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue