Replace direct emit of PlayerLogic signal with requestRearrangeCounters slot call

This commit is contained in:
DawnFire42 2026-08-10 12:25:56 -04:00
parent 7b135fe10c
commit e881c3f437
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33
2 changed files with 5 additions and 1 deletions

View file

@ -95,6 +95,10 @@ signals:
public slots:
void setActive(bool _active);
void onRequestZoneViewToggle(const QString &zoneName, int numberCards, bool isReversed);
void requestRearrangeCounters()
{
emit rearrangeCounters();
}
public:
PlayerLogic(const ServerInfo_User &info, int _id, bool _local, bool _judge, AbstractGame *_parent);

View file

@ -35,7 +35,7 @@ AbstractCounter::AbstractCounter(CounterState *state,
connect(state, &CounterState::activeChanged, this, [this](bool newActive) {
setActive(newActive);
emit player->rearrangeCounters();
player->requestRearrangeCounters();
});
if (player->getPlayerInfo()->getLocalOrJudge()) {