Warm only once per session

This commit is contained in:
Laurent Mazet 2021-04-27 00:07:07 +02:00
parent 857c7fb6d0
commit 27f010fc8c
1 changed files with 3 additions and 2 deletions

View File

@ -189,7 +189,7 @@
let boardLabelSelect; let boardLabelSelect;
const downloadedDictionaries = {}; const downloadedDictionaries = {};
const boardDef = {nbRows: 0, nbColumns: 0, rackLength: 0}; const boardDef = {nbRows: 0, nbColumns: 0, rackLength: 0};
let warningCustomBoard = false;
const playerLetters = []; const playerLetters = [];
let currentPlayer = ""; let currentPlayer = "";
@ -932,8 +932,9 @@
? format(_("You changed the board to {0} for language {1}"), newLabel, newLang) ? format(_("You changed the board to {0} for language {1}"), newLabel, newLang)
: format(_("{0} changed the board to {1} for language {2}"), msg.sender, newLabel, newLang) : format(_("{0} changed the board to {1} for language {2}"), msg.sender, newLabel, newLang)
); );
if (newLabel !== "15x15-7") { if ((newLabel !== "15x15-7") && (!warningCustomBoard)) {
infoMessage(_("Caution, this feature is experimental; any feedback will be appreciated")); infoMessage(_("Caution, this feature is experimental; any feedback will be appreciated"));
warningCustomBoard = true;
} }
break; break;
} }