Commit ee13744
committed
extension: Initialize and tear down OverflowManager
The overflow manager is a singleton that the icon and the
preferences code expect to find via `OverflowManager.getDefault()`.
Without an explicit `initialize()` call at extension startup
the manager would lazily appear only after the first icon
registration race-wins, and could be left holding GSettings
signal handlers if the extension is disabled while a tray
session is active.
Wire its lifecycle to the extension's `enable()`/`disable()`
hooks, mirroring the pattern already used for `TrayIconsManager`,
so reloads and lock-screen toggles always start with a clean
manager and never leak handlers.1 parent 6eed004 commit ee13744
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| 66 | + | |
64 | 67 | | |
65 | 68 | | |
66 | 69 | | |
| |||
0 commit comments