mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
change back to prompt buttons grabbing focus from other windows on prompt update
This commit is contained in:
@@ -581,10 +581,10 @@ public final class CMatchUI
|
|||||||
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.requestFocusInWindow();
|
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() ) { //pfps 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