fix: add destroy() and signal cleanup across widgets, fix settings window + menu regressions
P0 leak fixes: context/action menus destroyed on deactivate, config callbacks unregistered in settings widgets, recorder and server signal IDs stored and disconnected, bluetooth client closed and unsubscribed, rfkill timer removed, seek timers cancelled, dropdown and options menus freed, app name cache LRU-bounded. Fix desktop 'Edit Widgets' and settings menu regressions by deferring destroy out of Gtk signal handlers via GLib.idle_add. Fix settings entry fields by connecting the activate signal explicitly (Enter saves the value).
This commit is contained in:
13 files changed
+180
-44
No files matched your search
@@ -498,6 +498,10 @@ def add_destroy_to_indicators():
|
||||
self.bluetooth.disconnect_by_func(self.on_bluetooth_direct_changed)
|
||||
self.bluetooth.disconnect_by_func(self.on_device_added)
|
||||
self.bluetooth.disconnect_by_func(self.on_device_removed)
|
||||
try:
|
||||
self.bluetooth.close()
|
||||
except Exception as e:
|
||||
logger.error(f"Error closing bluetooth indicator client: {e}")
|
||||
except Exception as e:
|
||||
logger.error(f"Error disconnecting bluetooth indicator signals: {e}")
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user