mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Click on window close button when WinLoseScreen is shown will perform as 'Quit'
This commit is contained in:
@@ -112,7 +112,12 @@ public enum FControl {
|
||||
Singletons.getView().getFrame().setDefaultCloseOperation(
|
||||
WindowConstants.DO_NOTHING_ON_CLOSE);
|
||||
|
||||
if (!Singletons.getModel().getGame().isGameOver())
|
||||
CDock.SINGLETON_INSTANCE.concede();
|
||||
else {
|
||||
Singletons.getControl().changeState(FControl.Screens.HOME_SCREEN);
|
||||
SOverlayUtils.hideOverlay();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user