mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
Fixed the component provider close button being disabled in some
providers
This commit is contained in:
parent
994c999646
commit
3b73e4324e
1 changed files with 5 additions and 0 deletions
|
@ -207,6 +207,11 @@ class DockableToolBarManager {
|
|||
@Override
|
||||
public boolean isEnabledForContext(ActionContext context) {
|
||||
ComponentProvider provider = context.getComponentProvider();
|
||||
if (provider == null) {
|
||||
// Some context providers do not specify the provider when creating a contexts
|
||||
DockingWindowManager dwm = DockingWindowManager.getActiveInstance();
|
||||
provider = dwm.getActiveComponentProvider();
|
||||
}
|
||||
return provider == dockableComponent.getComponentProvider();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue