Fix: Text rendering causing crash because of notification being in a different thread
This commit is contained in:
		
							parent
							
								
									56eac5ccd6
								
							
						
					
					
						commit
						0be0942da3
					
				| @ -451,6 +451,7 @@ class message(Gtk.Overlay): | |||||||
|                     chat.container.remove(chat.welcome_screen) |                     chat.container.remove(chat.welcome_screen) | ||||||
|                     chat.welcome_screen = None |                     chat.welcome_screen = None | ||||||
|                 chat.stop_message() |                 chat.stop_message() | ||||||
|  |                 self.text = self.content_children[-1].get_label() | ||||||
|                 GLib.idle_add(self.set_text, self.content_children[-1].get_label()) |                 GLib.idle_add(self.set_text, self.content_children[-1].get_label()) | ||||||
|                 self.dt = datetime.datetime.now() |                 self.dt = datetime.datetime.now() | ||||||
|                 GLib.idle_add(self.add_footer, self.dt) |                 GLib.idle_add(self.add_footer, self.dt) | ||||||
|  | |||||||
| @ -575,6 +575,7 @@ Generate a title following these rules: | |||||||
|             if response.status_code != 200: |             if response.status_code != 200: | ||||||
|                 raise Exception('Network Error') |                 raise Exception('Network Error') | ||||||
|         except Exception as e: |         except Exception as e: | ||||||
|  |             logger.error(e) | ||||||
|             self.chat_list_box.get_tab_by_name(chat.get_name()).spinner.set_visible(False) |             self.chat_list_box.get_tab_by_name(chat.get_name()).spinner.set_visible(False) | ||||||
|             chat.busy = False |             chat.busy = False | ||||||
|             GLib.idle_add(message_element.add_action_buttons) |             GLib.idle_add(message_element.add_action_buttons) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user