- Code formatting.

This commit is contained in:
Agetian
2017-02-08 06:28:57 +00:00
parent 14275d518b
commit 4be29c4df0

View File

@@ -580,11 +580,12 @@ public final class CMatchUI
// ensure we don't steal focus from an overlay // ensure we don't steal focus from an overlay
if (toFocus != null) { if (toFocus != null) {
final Runnable focusRoutine = new Runnable() { final Runnable focusRoutine = new Runnable() {
@Override public final void run() { @Override
public final void run() {
toFocus.requestFocus(); // focus here even if another window has focus - shouldn't have to do it this way but some popups grab window focus toFocus.requestFocus(); // focus here even if another window has focus - shouldn't have to do it this way but some popups grab window focus
} }
}; };
if ( FThreads.isGuiThread() ) { // run this now whether in EDT or not so that it doesn't clobber later stuff if (FThreads.isGuiThread()) { // run this now whether in EDT or not so that it doesn't clobber later stuff
FThreads.invokeInEdtNowOrLater(focusRoutine); FThreads.invokeInEdtNowOrLater(focusRoutine);
} else { } else {
FThreads.invokeInEdtAndWait(focusRoutine); FThreads.invokeInEdtAndWait(focusRoutine);