mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Create an enum for price sources
Probably settingscache would have been the correct place for the enum, but keeping it in the same class/file where price sources are defined sounds cleaner to me
This commit is contained in:
parent
a9ffbf5d2d
commit
9ca5908de5
3 changed files with 10 additions and 7 deletions
|
|
@ -648,10 +648,10 @@ void TabDeckEditor::actUpdatePrices()
|
|||
|
||||
switch(settingsCache->getPriceTagSource())
|
||||
{
|
||||
case 0:
|
||||
case AbstractPriceUpdater::BLPPriceSource:
|
||||
up = new BLPPriceUpdater(deckModel->getDeckList());
|
||||
break;
|
||||
case 1:
|
||||
case AbstractPriceUpdater::DBPriceSource:
|
||||
up = new DBPriceUpdater(deckModel->getDeckList());
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue