Skip to content

Conversation

@alwey
Copy link
Contributor

@alwey alwey commented Jan 22, 2022

This patch changes the usage of the NewTournamentDialog in the GUI. Currently this dialog is deleted after use (OK or Cancel) and a new instance with the default settings is used for the next tournament.

This code re-uses the existing NewTournamentDialog with old values to speed up the set-up of the next - probably similar - tournament. A new Reset-Button triggers the reset to values originating from the settings in the file cutechess.ini . However, other values which have no setting in cutechess.ini remain unchanged.

The method NewTournamentDialog::readSettings has been simplified and corrected.

This PR is an alternative to the patch which uses a new dialog after reset, PR #707.

Resolves #209

nt1
A "Reset"-button has been added to NewTournamentDialog.

Example: Values before ...
nt2

... and after pressing the "Reset"-button.
nt3

HTH.

Do not delete NewTournamentDialog after usage, but re-use it for the
next tournament.

Add reset functionality to NewTournamentDialog. Only values read from
.ini-file are restored.

Simplify and correct NewTournamentDialog::readSettings.

Resolves cutechess#209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Re-use previous tournament's settings

1 participant