ui: do not register Disposable without need

This commit is contained in:
Aleksey Pivovarov
2016-03-18 14:04:44 +03:00
parent 431ccf96d2
commit b94b786013
@@ -164,15 +164,15 @@ public abstract class AnAction implements PossiblyDumbAware {
if (!actionList.contains(this)){
actionList.add(this);
}
}
if (parentDisposable != null) {
Disposer.register(parentDisposable, new Disposable() {
@Override
public void dispose() {
unregisterCustomShortcutSet(component);
}
});
if (parentDisposable != null) {
Disposer.register(parentDisposable, new Disposable() {
@Override
public void dispose() {
unregisterCustomShortcutSet(component);
}
});
}
}
}