fix UI revalidation trigger location
This commit is contained in:
parent
62b5d574da
commit
aff2ce9eee
|
@ -146,6 +146,7 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(ResolutionOrSkinChangedEvent event) {
|
public void onEvent(ResolutionOrSkinChangedEvent event) {
|
||||||
destroyImages();
|
destroyImages();
|
||||||
|
UI.revalidate(); // TODO this shouldn't be here
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -350,7 +351,6 @@ public class DisplayContainer implements ErrorDumpable, KeyListener, MouseListen
|
||||||
Fonts.init();
|
Fonts.init();
|
||||||
|
|
||||||
eventBus.post(new ResolutionOrSkinChangedEvent());
|
eventBus.post(new ResolutionOrSkinChangedEvent());
|
||||||
UI.revalidate(); // TODO this shouldn't be here
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void resetCursor() {
|
public void resetCursor() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user