mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
merge
This commit is contained in:
commit
eced4e2340
20 changed files with 5273 additions and 1121 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue