mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-02 08:57:53 -07:00
price tag feature by Marcio Ribeiro
This commit is contained in:
@@ -31,6 +31,8 @@ SettingsCache::SettingsCache()
|
||||
|
||||
soundEnabled = settings->value("sound/enabled", false).toBool();
|
||||
soundPath = settings->value("sound/path").toString();
|
||||
|
||||
priceTagFeature = settings->value("deckeditor/pricetags", false).toBool();
|
||||
}
|
||||
|
||||
void SettingsCache::setLang(const QString &_lang)
|
||||
@@ -171,3 +173,9 @@ void SettingsCache::setSoundPath(const QString &_soundPath)
|
||||
settings->setValue("sound/path", soundPath);
|
||||
emit soundPathChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setPriceTagFeature(int _priceTagFeature)
|
||||
{
|
||||
priceTagFeature = _priceTagFeature;
|
||||
settings->setValue("deckeditor/pricetags", priceTagFeature);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user