[shtrom] don't overwrite status message when we display current song. Fixes #3558
This commit is contained in:
		
							parent
							
								
									508b411e80
								
							
						
					
					
						commit
						6c5f65ddf0
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -3752,8 +3752,13 @@ class RosterWindow: | ||||||
| 			index('invisible'): | 			index('invisible'): | ||||||
| 				continue | 				continue | ||||||
| 			current_show = gajim.SHOW_LIST[gajim.connections[account].connected] | 			current_show = gajim.SHOW_LIST[gajim.connections[account].connected] | ||||||
| 			self.send_status(account, current_show, status_message) | 			# Keep the last status message, replacing only the current song part | ||||||
| 
 | 			current_status_message = gajim.connections[account].status | ||||||
|  | 			song_offset = current_status_message.find('♪') | ||||||
|  | 			if song_offset > 0: | ||||||
|  | 				current_status_message = current_status_message[0:song_offset] | ||||||
|  | 			status_message = current_status_message.strip() + '\n' + status_message | ||||||
|  | 			self.send_status(account, current_show, status_message.strip()) | ||||||
| 
 | 
 | ||||||
| 	def update_status_combobox(self): | 	def update_status_combobox(self): | ||||||
| 		# table to change index in connection.connected to index in combobox | 		# table to change index in connection.connected to index in combobox | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue