mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ui: do not register Disposable without need
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user