Fix broken application.app.controller references in Bluesky buffers

application.app was never set anywhere - application.py is just a
constants module. Every call to view_chat(), on_new_chat(),
view_conversation(), on_reposts(), and on_likes() crashed with
AttributeError, silently swallowed by get_event's except clause.

Fix: store controller reference on each buffer during create_buffer()
in mainController, then use self.controller instead of the broken
application.app.controller pattern throughout all Bluesky buffer and
dialog code.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jesús Pavón Abián
2026-02-18 08:16:23 +01:00
co-authored by Claude Opus 4.6
parent 876d02d00e
commit 83781e521e
4 changed files with 13 additions and 17 deletions
+1
View File
@@ -436,6 +436,7 @@ class Controller(object):
kwargs["parent"] = self.view.nb # self.view.nb is the wx.Treebook
buffer = buffer_panel_class(**kwargs) # This is the wx.Panel instance
buffer.controller = self
if start:
try: