mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
Fix Continue and Restart in match screen
This commit is contained in:
@@ -205,7 +205,9 @@ public enum FControl {
|
|||||||
* Switches between display states in top level JFrame.
|
* Switches between display states in top level JFrame.
|
||||||
*/
|
*/
|
||||||
public void changeState(Screens screen) {
|
public void changeState(Screens screen) {
|
||||||
if (this.state == screen) { return; }
|
//TODO: Uncomment the line below if this function stops being used to refresh
|
||||||
|
//the current screen in some places (such as Continue and Restart in the match screen)
|
||||||
|
//if (this.state == screen) { return; }
|
||||||
|
|
||||||
clearChildren(JLayeredPane.DEFAULT_LAYER);
|
clearChildren(JLayeredPane.DEFAULT_LAYER);
|
||||||
this.state = screen;
|
this.state = screen;
|
||||||
|
|||||||
Reference in New Issue
Block a user