mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GT-3485 Removed Secondary "default" action context to prevent actions
from triggering unexpectedly
This commit is contained in:
parent
db7803144a
commit
26d7d0da5f
33 changed files with 128 additions and 288 deletions
|
@ -121,7 +121,6 @@ public class WindowActionManager {
|
|||
ComponentProvider provider = placeHolderForScheduledActionUpdate == null ? null
|
||||
: placeHolderForScheduledActionUpdate.getProvider();
|
||||
ActionContext localContext = provider == null ? null : provider.getActionContext(null);
|
||||
ActionContext globalContext = winMgr.getGlobalContext();
|
||||
if (localContext == null) {
|
||||
localContext = new ActionContext();
|
||||
}
|
||||
|
@ -132,9 +131,6 @@ public class WindowActionManager {
|
|||
if (action.isValidContext(localContext)) {
|
||||
action.setEnabled(action.isEnabledForContext(localContext));
|
||||
}
|
||||
else if (action.isValidGlobalContext(globalContext)) {
|
||||
action.setEnabled(action.isEnabledForContext(globalContext));
|
||||
}
|
||||
else {
|
||||
action.setEnabled(false);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue