[Server] Persist and serve deck sync fields + version rows

This commit is contained in:
Lukas Brübach 2026-10-11 14:16:30 +02:00
parent 10d46bafbd
commit a03f4c2fa4
5 changed files with 160 additions and 16 deletions

View file

@ -1122,6 +1122,11 @@ int Servatrice::getDeckShareMaxSharesPerDay() const
return settingsCache->value("deck_share/max_shares_per_day", 50).toInt();
}
int Servatrice::getDeckSyncMaxVersions() const
{
return qMax(1, settingsCache->value("deck_sync/max_versions", 20).toInt());
}
int Servatrice::getNumberOfTCPPools() const
{
return settingsCache->value("server/number_pools", 1).toInt();