| commit 1676: | c875d9ecab07 |
| parent 1675: | bac319d57844 |
| branch: | default |
fix unloading of plugins
Changed (Δ192 bytes):
raw changeset »
pida/core/pdbus.py (7 lines added, 0 lines removed)
pida/core/service.py (2 lines added, 0 lines removed)
Up to file-list pida/core/pdbus.py:
| … | … | @@ -85,6 +85,10 @@ class DbusOptionsManagerReal(Object): |
85 |
85 |
self.on_config_changed, 'CONFIG_CHANGED', |
86 |
86 |
ns, None, path, sender_keyword='sender') |
87 |
87 |
|
88 |
def unload(self): |
|
89 |
self.config_match.remove() |
|
90 |
self.remove_from_connection() |
|
91 |
||
88 |
92 |
def on_config_changed(self, workspace, name, value, sender=None): |
89 |
93 |
if sender == BUS.get_unique_name(): |
90 |
94 |
return |
| … | … | @@ -225,6 +229,9 @@ class DbusOptionsManagerReal(Object): |
225 |
229 |
|
226 |
230 |
|
227 |
231 |
class DbusOptionsManagerNoop(object): |
232 |
def unload(self): |
|
233 |
pass |
|
234 |
||
228 |
235 |
def notify_dbus(self, *args): |
229 |
236 |
pass |
230 |
237 |
