mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Fix translate setting + Mod oracle to portable build
This commit is contained in:
parent
c8d59eec5e
commit
1e2d5b0693
2 changed files with 34 additions and 13 deletions
|
|
@ -17,8 +17,8 @@ QString SettingsCache::getSettingsPath()
|
|||
#else
|
||||
file = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
|
||||
#endif
|
||||
file.append("/settings/");
|
||||
#endif
|
||||
file.append("/settings/");
|
||||
|
||||
return file;
|
||||
}
|
||||
|
|
@ -98,7 +98,7 @@ void SettingsCache::translateLegacySettings()
|
|||
QStringList allFilters = legacySetting.allKeys();
|
||||
for (int i = 0; i < allFilters.size(); ++i) {
|
||||
if(allFilters.at(i).startsWith("game_type")){
|
||||
gameFilters().setGameTypeEnabled(allFilters.at(i), legacySetting.value(allFilters.at(i)).toBool());
|
||||
gameFilters().setGameHashedTypeEnabled(allFilters.at(i), legacySetting.value(allFilters.at(i)).toBool());
|
||||
}
|
||||
}
|
||||
QStringList allKeysfilter_games = legacySetting.allKeys();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue