mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Add option to servatrice to disable replay storage.
This commit is contained in:
parent
de1b925b7d
commit
fefceac2c6
3 changed files with 9 additions and 0 deletions
|
|
@ -642,6 +642,9 @@ void Servatrice_DatabaseInterface::storeGameInformation(const QString &roomName,
|
|||
if (!checkSql())
|
||||
return;
|
||||
|
||||
if (!settingsCache->value("game/store_replays", 1).toBool() )
|
||||
return;
|
||||
|
||||
QVariantList gameIds1, playerNames, gameIds2, userIds, replayNames;
|
||||
QSetIterator<QString> playerIterator(allPlayersEver);
|
||||
while (playerIterator.hasNext()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue