mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-5117 - Updated the action to show a provider to be a toggle action,
hiding the provider if already visible
This commit is contained in:
@@ -1100,6 +1100,11 @@ public abstract class ComponentProvider implements HelpDescriptor, ActionContext
|
|||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionContext context) {
|
public void actionPerformed(ActionContext context) {
|
||||||
|
|
||||||
|
if (isShowing()) {
|
||||||
|
setVisible(false);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
DockingWindowManager myDwm = DockingWindowManager.getInstance(getComponent());
|
DockingWindowManager myDwm = DockingWindowManager.getInstance(getComponent());
|
||||||
if (myDwm == null) {
|
if (myDwm == null) {
|
||||||
// this can happen when the tool loses focus
|
// this can happen when the tool loses focus
|
||||||
|
|||||||
Reference in New Issue
Block a user