mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-06 01:53:25 -08:00
Fix ZeldaZach review for PR 7496: deck path in ctor, server-time baseline, single-query sync check
This commit is contained in:
parent
477605d1e0
commit
1433af321d
6 changed files with 30 additions and 41 deletions
|
|
@ -260,6 +260,13 @@ TabDeckStorage::TabDeckStorage(TabSupervisor *_tabSupervisor,
|
|||
|
||||
syncManager = new DeckSyncManager(
|
||||
client, [](const DeckList &deck) { return getDeckColorIdentity(deck, CardDatabaseManager::query()); }, this);
|
||||
syncManager->setDeckPath(SettingsCache::instance().paths().getDeckPath());
|
||||
connect(&SettingsCache::instance().paths(), &PathsSettings::deckPathChanged, this, [this] {
|
||||
const QString deckPath = SettingsCache::instance().paths().getDeckPath();
|
||||
localDirModel->setRootPath(deckPath);
|
||||
localDirView->setRootIndex(localDirModel->index(localDirModel->rootPath(), 0));
|
||||
syncManager->setDeckPath(deckPath);
|
||||
});
|
||||
syncManager->setConflictDefault(SettingsCache::instance().deckSync().getConflictDefault());
|
||||
syncManager->setAutoSyncEnabled(SettingsCache::instance().deckSync().getAutoSync());
|
||||
syncManager->setSyncIntervalMinutes(SettingsCache::instance().deckSync().getSyncIntervalMinutes());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue