IDEA-162678 Version Control Local Changes (Git) does not grab focus when opened

This commit is contained in:
Dmitry Avdeev
2016-10-17 18:45:07 +03:00
parent db2f6375cb
commit 70401e7ffa
@@ -451,13 +451,12 @@ public final class ToolWindowManagerImpl extends ToolWindowManagerEx implements
toolWindow.setSplitMode(true, null);
}
final ActionCallback activation = toolWindow.setActivation(new ActionCallback());
// ToolWindow activation is not needed anymore and should be removed in 2017
toolWindow.setActivation(new ActionCallback()).setDone();
final DumbAwareRunnable runnable = () -> {
if (toolWindow.isDisposed()) return;
toolWindow.ensureContentInitialized();
activation.setDone();
};
if (visible || ApplicationManager.getApplication().isUnitTestMode()) {
runnable.run();