Skip to content

Commit

Permalink
fix(conversation_profile): Fix wx object deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
clementb49 committed Oct 5, 2024
1 parent d9acd7e commit 320a6b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions basilisk/gui/conversation_profile_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ def on_add(self, event):
self.profiles.save()
self.on_list_item_selected(None)
self.menu_update = True
dialog.Destroy()

def on_edit(self, event):
profile_index = self.current_profile_index
Expand All @@ -265,6 +266,7 @@ def on_edit(self, event):
)
self.on_list_item_selected(None)
self.menu_update = True
dialog.Destroy()

def update_summary(self, profile: ConversationProfile):
self.summary_text.SetValue(self.build_profile_summary(profile))
Expand Down
2 changes: 2 additions & 0 deletions basilisk/gui/main_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -575,10 +575,12 @@ def on_manage_conversation_profiles(self, event):
)
)
menu.Remove(self.new_conversation_profile_item.GetId())
self.new_conversation_profile_item.GetSubMenu().Destroy()
self.new_conversation_profile_item.SetSubMenu(
self.build_profile_menu(self.on_new_conversation)
)
menu.Insert(item_index, self.new_conversation_profile_item)
profile_dialog.Destroy()

def on_install_nvda_addon(self, event):
import zipfile
Expand Down

0 comments on commit 320a6b5

Please sign in to comment.