mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
[Client+Server] Deck version history with restore
This commit is contained in:
parent
875e87d1bc
commit
44f57aa2b9
17 changed files with 437 additions and 0 deletions
|
|
@ -42,3 +42,14 @@ void DeckSyncSettings::setSyncIntervalMinutes(int _syncIntervalMinutes)
|
|||
setValue(_syncIntervalMinutes, "syncIntervalMinutes");
|
||||
emit syncIntervalMinutesChanged(_syncIntervalMinutes);
|
||||
}
|
||||
|
||||
int DeckSyncSettings::getHistoryLimit() const
|
||||
{
|
||||
return qBound(1, getValue("historyLimit", QString(), QString(), 20).toInt(), 100);
|
||||
}
|
||||
|
||||
void DeckSyncSettings::setHistoryLimit(int _historyLimit)
|
||||
{
|
||||
setValue(_historyLimit, "historyLimit");
|
||||
emit historyLimitChanged(_historyLimit);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue