Skip to content

Commit fdb2069

Browse files
Copilotfsmosca
andcommitted
Adjust review cap and close behavior
Agent-Logs-Url: https://github.com/fsmosca/Python-Easy-Chess-GUI/sessions/bf713ac4-2c4c-487d-9c0d-19e5c95999e9 Co-authored-by: fsmosca <22366935+fsmosca@users.noreply.github.com>
1 parent 71362de commit fdb2069

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

python_easy_chess_gui.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
APP_NAME = 'Python Easy Chess GUI'
6868
APP_VERSION = 'v1.19.0'
6969
BOX_TITLE = f'{APP_NAME} {APP_VERSION}'
70-
REVIEW_MAX_DISPLAY_GAMES = 5000
70+
REVIEW_MAX_DISPLAY_GAMES = 10000
7171

7272

7373
platform = sys.platform
@@ -2775,7 +2775,11 @@ def start_review_mode(self, window):
27752775
while True:
27762776
button, value = review_window.Read(timeout=50)
27772777

2778-
if button is None or button == 'Neutral':
2778+
if button is None:
2779+
review_window.Close()
2780+
sys.exit(0)
2781+
2782+
if button == 'Neutral':
27792783
break
27802784

27812785
if button == 'GUI':

0 commit comments

Comments
 (0)