don't blink highlighted phase when backwards skipping in replays (#5185)

This commit is contained in:
RickyRister 2024-11-22 19:21:54 -08:00 committed by GitHub
parent 83409c32c4
commit bd60a9fd2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 31 deletions

View file

@ -86,23 +86,6 @@ void PhaseButton::updateAnimation()
update();
}
/**
* @brief Immediately resets the button to the inactive state, without going through the animation.
*/
void PhaseButton::reset()
{
activeAnimationTimer->stop();
active = false;
if (highlightable) {
activeAnimationCounter = 0;
} else {
activeAnimationCounter = 9;
}
update();
}
void PhaseButton::mousePressEvent(QGraphicsSceneMouseEvent * /*event*/)
{
emit clicked();
@ -268,16 +251,6 @@ void PhasesToolbar::phaseButtonClicked()
emit sendGameCommand(cmd, -1);
}
/**
* @brief Immediately resets the toolbar to its initial state, with all phases inactive.
*/
void PhasesToolbar::reset()
{
for (auto &i : buttonList) {
i->reset();
}
}
void PhasesToolbar::actNextTurn()
{
emit sendGameCommand(Command_NextTurn(), -1);