mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-25 19:05:32 +08:00
Merge remote-tracking branch 'origin/patch'
This commit is contained in:
@@ -207,6 +207,7 @@ public class FlatProgramAPI {
|
||||
|
||||
AutoAnalysisManager mgr = AutoAnalysisManager.getAnalysisManager(program);
|
||||
|
||||
mgr.initializeOptions();
|
||||
mgr.reAnalyzeAll(null);
|
||||
|
||||
analyzeChanges(program);
|
||||
|
||||
@@ -212,8 +212,12 @@ public class GlobalMenuAndToolBarManager implements DockingWindowListener {
|
||||
KeyboardFocusManager kfm = KeyboardFocusManager.getCurrentKeyboardFocusManager();
|
||||
Window w = kfm.getFocusedWindow();
|
||||
if (w instanceof DockingDialog dialog) {
|
||||
// the provider can be null when the dialog has been closed, but the Java focus transfer
|
||||
// has not yet completed
|
||||
DialogComponentProvider provider = dialog.getDialogComponent();
|
||||
return provider.getActionContext(null);
|
||||
if (provider != null) {
|
||||
return provider.getActionContext(null);
|
||||
}
|
||||
}
|
||||
|
||||
return getComponentProviderContext(focusedWindowNode);
|
||||
|
||||
Reference in New Issue
Block a user