This commit is contained in:
Brübach, Lukas 2026-01-25 21:38:55 +01:00
parent 0babdd1a7d
commit d6124ad484

View file

@ -433,7 +433,7 @@ void DeckEditorDeckDockWidget::requestBracketEstimate()
bracketInfoButton->setEnabled(false); bracketInfoButton->setEnabled(false);
bracketValueLabel->setText(tr("Calculating…")); bracketValueLabel->setText(tr("Calculating…"));
requestId = CommanderSpellbookApiAccessor::instance().estimateBracket(*deckModel->getDeckList(), this); requestId = CommanderSpellbookApiAccessor::instance().estimateBracket(*deckStateManager->getModel()->getDeckList(), this);
connect(&CommanderSpellbookApiAccessor::instance(), &CommanderSpellbookApiAccessor::estimateBracketFinished, this, connect(&CommanderSpellbookApiAccessor::instance(), &CommanderSpellbookApiAccessor::estimateBracketFinished, this,
&DeckEditorDeckDockWidget::onEstimateBracketFinished); &DeckEditorDeckDockWidget::onEstimateBracketFinished);
@ -501,8 +501,6 @@ void DeckEditorDeckDockWidget::initializeFormats()
deckStateManager->setFormat(""); // clear format if deselected deckStateManager->setFormat(""); // clear format if deselected
} }
emit deckModified();
const bool isCommander = (formatKey.compare("commander", Qt::CaseInsensitive) == 0); const bool isCommander = (formatKey.compare("commander", Qt::CaseInsensitive) == 0);
const bool commanderSpellbookIntegrationEnabled = const bool commanderSpellbookIntegrationEnabled =
SettingsCache::instance().getDeckEditorCommanderSpellbookIntegrationEnabled() != SettingsCache::instance().getDeckEditorCommanderSpellbookIntegrationEnabled() !=
@ -528,7 +526,7 @@ void DeckEditorDeckDockWidget::initializeFormats()
void DeckEditorDeckDockWidget::maybeAutoEstimateBracket() void DeckEditorDeckDockWidget::maybeAutoEstimateBracket()
{ {
const QString formatKey = deckModel->getDeckList()->getGameFormat(); const QString formatKey = deckStateManager->getModel()->getDeckList()->getGameFormat();
const bool isCommander = (formatKey.compare("commander", Qt::CaseInsensitive) == 0); const bool isCommander = (formatKey.compare("commander", Qt::CaseInsensitive) == 0);