Skip to content

Commit

Permalink
Disable rankings animations after switching to elim bracket or allian…
Browse files Browse the repository at this point in the history
…ce selection
  • Loading branch information
brenapp committed May 17, 2022
1 parent 08aca57 commit e802b2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ async function getRecordingPath(tm: Client): Promise<fs.FileHandle | undefined>
// Disable show saved score when you switch display to elim bracket or alliance selection
if (mode == AudienceDisplayMode.ELIM_BRACKET || mode == AudienceDisplayMode.ALLIANCE_SELECTION) {
if (audienceDisplayOptions.savedScore) {
console.log(`[${new Date().toISOString()}] info: detected switch to ${AudienceDisplayMode[mode]}, disabling show saved score after match ends`);
console.log(`[${new Date().toISOString()}] info: detected switch to ${AudienceDisplayMode[mode]}, disabling show saved score & rankings automation`);
audienceDisplayOptions.savedScore = false;
audienceDisplayOptions.rankings = false;
};
};

Expand Down

0 comments on commit e802b2c

Please sign in to comment.