fix Decks, Pics replays & sounds paths on Portable build
This commit is contained in:
parent
f4ae08f8b1
commit
b4c5729bf5
1 changed files with 8 additions and 2 deletions
|
@ -26,7 +26,13 @@ QString SettingsCache::getSettingsPath()
|
||||||
|
|
||||||
void SettingsCache::translateLegacySettings()
|
void SettingsCache::translateLegacySettings()
|
||||||
{
|
{
|
||||||
//NOTE Please remove this legacy setting translation after 2016-9-1 (+1 year after creation)
|
#ifdef PORTABLE_BUILD
|
||||||
|
setDeckPath("data/decks");
|
||||||
|
setReplaysPath("data/replays");
|
||||||
|
setPicsPath("data/pics");
|
||||||
|
setSoundPath("data/sounds");
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
//Layouts
|
//Layouts
|
||||||
QFile layoutFile(getSettingsPath()+"layouts/deckLayout.ini");
|
QFile layoutFile(getSettingsPath()+"layouts/deckLayout.ini");
|
||||||
|
@ -627,4 +633,4 @@ void SettingsCache::setNotifyAboutUpdate(int _notifyaboutupdate)
|
||||||
{
|
{
|
||||||
notifyAboutUpdates = _notifyaboutupdate;
|
notifyAboutUpdates = _notifyaboutupdate;
|
||||||
settings->setValue("personal/updatenotification", notifyAboutUpdates);
|
settings->setValue("personal/updatenotification", notifyAboutUpdates);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue