|
@@ -71,9 +71,6 @@ public final class FreeDesktopNotificationsPlugin extends Plugin implements
|
71
|
71
|
*/
|
72
|
72
|
public FreeDesktopNotificationsPlugin() {
|
73
|
73
|
super();
|
74
|
|
-
|
75
|
|
- IdentityManager.getGlobalConfig().addChangeListener(getDomain(), this);
|
76
|
|
- setCachedSettings();
|
77
|
74
|
}
|
78
|
75
|
|
79
|
76
|
/**
|
|
@@ -145,6 +142,9 @@ public final class FreeDesktopNotificationsPlugin extends Plugin implements
|
145
|
142
|
*/
|
146
|
143
|
@Override
|
147
|
144
|
public void onLoad() {
|
|
145
|
+ IdentityManager.getGlobalConfig().addChangeListener(getDomain(), this);
|
|
146
|
+ setCachedSettings();
|
|
147
|
+
|
148
|
148
|
command = new FDNotifyCommand(this);
|
149
|
149
|
|
150
|
150
|
// Extract required Files
|
|
@@ -181,6 +181,7 @@ public final class FreeDesktopNotificationsPlugin extends Plugin implements
|
181
|
181
|
@Override
|
182
|
182
|
public synchronized void onUnload() {
|
183
|
183
|
CommandManager.unregisterCommand(command);
|
|
184
|
+ IdentityManager.getGlobalConfig().removeListener(this);
|
184
|
185
|
}
|
185
|
186
|
|
186
|
187
|
/** {@inheritDoc} */
|