Group Feature Request/Bug Fix: Allow setting a log location for any account before log in
The new setting gets overridden by the per account setting, if it has been set, but provides users the ability to set log location pre-login.
This commit is contained in:
@@ -1048,7 +1048,8 @@ bool idle_startup()
|
||||
//Default the path if one isn't set.
|
||||
if (gSavedPerAccountSettings.getString("InstantMessageLogPath").empty())
|
||||
{
|
||||
gDirUtilp->setChatLogsDir(gDirUtilp->getOSUserAppDir());
|
||||
const std::string dir = gSavedSettings.getString("InstantMessageLogPathAnyAccount");
|
||||
gDirUtilp->setChatLogsDir(dir.empty() ? gDirUtilp->getOSUserAppDir() : dir);
|
||||
gSavedPerAccountSettings.setString("InstantMessageLogPath",gDirUtilp->getChatLogsDir());
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user