mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- Code formatting.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user