Save an indent level.

Took 43 seconds
This commit is contained in:
Lukas Brübach 2025-08-13 18:59:03 +02:00
parent 3e383e2d36
commit 2edcba290f

View file

@ -909,17 +909,16 @@ void TabGame::eventGameStateChanged(const Event_GameStateChanged &event,
playerListWidget->addPlayer(prop); playerListWidget->addPlayer(prop);
} }
player->processPlayerInfo(playerInfo); player->processPlayerInfo(playerInfo);
if (player->getLocal()) { if (player->getLocal() || !gameInfo.share_decklists_on_load()) {
continue; continue;
} }
if (gameInfo.share_decklists_on_load()) {
DeckList loader; DeckList loader;
loader.loadFromString_Native(QString::fromStdString(playerInfo.deck_list())); loader.loadFromString_Native(QString::fromStdString(playerInfo.deck_list()));
QMapIterator<int, TabbedDeckViewContainer *> i(deckViewContainers); QMapIterator<int, TabbedDeckViewContainer *> i(deckViewContainers);
while (i.hasNext()) { while (i.hasNext()) {
i.next(); i.next();
i.value()->addOpponentDeckView(loader, playerId, player->getName()); i.value()->addOpponentDeckView(loader, playerId, player->getName());
}
} }
} }
} }