FIRE-22853 Make snapshots to disk not remember path and filename if the user doesnt want them to.

master
Liny 2018-08-02 04:48:25 -07:00
parent 71e85b00be
commit 708f3388af
3 changed files with 39 additions and 0 deletions

View File

@ -1202,5 +1202,16 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>FSRememberSnapshotPathSessions</key>
<map>
<key>Comment</key>
<string>If enabled, remember the path and filename of snapshots between sessions. Default (true)</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>1</integer>
</map>
</map>
</llsd>

View File

@ -1468,6 +1468,14 @@ bool idle_startup()
gSavedPerAccountSettings.setString("InstantMessageLogPath", gDirUtilp->getChatLogsDir());
}
// </FS:KC>
// <FS:LO> FIRE-22853 Make snapshots to disk not remember path and filename if the user doesnt want them to.
if (!gSavedPerAccountSettings.getBOOL("FSRememberSnapshotPathSessions"))
{
gSavedPerAccountSettings.setString("SnapshotBaseDir", gSavedPerAccountSettings.getControl("SnapshotBaseDir")->getDefault().asString());
gSavedPerAccountSettings.setString("SnapshotBaseName", gSavedPerAccountSettings.getControl("SnapshotBaseName")->getDefault().asString());
}
// </FS:LO>
// <FS:CR> Seperate user directories per grid on OS build
#ifdef OPENSIM
gDirUtilp->setPerAccountChatLogsDir(userid, gridlabel);

View File

@ -165,6 +165,26 @@
name="image_quality_slider"
top_pad="6"
width="203" />
<check_box
top_pad="6"
follows="left|top"
layout="topleft"
left="10"
width="20"
name="local_remember_location_sessions"
control_name="FSRememberSnapshotPathSessions"/>
<text
layout="topleft"
follows="top|left"
height="140"
length="1"
name="local_remember_location_sessions_text"
top_delta="-6"
left_delta="20"
width="200"
wrap="1">
Save location and filename between sessions
</text>
<button
follows="right|bottom"
height="23"