mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-15 22:42:37 -08:00
merge
This commit is contained in:
@@ -5,6 +5,7 @@ SettingsCache::SettingsCache()
|
||||
{
|
||||
settings = new QSettings(this);
|
||||
|
||||
customTranslationFile = settings->value("personal/custom_translation").toString();
|
||||
lang = settings->value("personal/lang").toString();
|
||||
|
||||
deckPath = settings->value("paths/decks").toString();
|
||||
@@ -37,6 +38,13 @@ SettingsCache::SettingsCache()
|
||||
priceTagFeature = settings->value("deckeditor/pricetags", false).toBool();
|
||||
}
|
||||
|
||||
void SettingsCache::setCustomTranslationFile(const QString &_customTranslationFile)
|
||||
{
|
||||
customTranslationFile = _customTranslationFile;
|
||||
settings->setValue("personal/custom_translation", customTranslationFile);
|
||||
emit customTranslationFileChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setLang(const QString &_lang)
|
||||
{
|
||||
lang = _lang;
|
||||
|
||||
Reference in New Issue
Block a user