don't update the tally when the dialog isn't shown

This commit is contained in:
tophf 2018-01-07 12:52:31 +03:00
parent 5941dd4338
commit a6e2cf47ed

View File

@ -791,6 +791,7 @@ onDOMready().then(() => {
function showTally(num, numApplies) { function showTally(num, numApplies) {
if (!state.tally) return;
if (num === undefined) { if (num === undefined) {
num = 0; num = 0;
for (const cm of state.editors) { for (const cm of state.editors) {