FIRE-29819 - [OPENSIM] Always enable grid select in OS (with override)

meow-7.2.2
Beq 2020-11-26 18:23:27 +00:00
parent 1effdff2bb
commit 9f3933d7e4
2 changed files with 20 additions and 6 deletions

View File

@ -6648,6 +6648,17 @@
<key>Value</key>
<integer>0</integer>
</map>
<key>FSOpenSimAlwaysForceShowGrid</key>
<map>
<key>Comment</key>
<string>Soft enable/disable the startup behaviour of OpenSim builds to allow gridlist access</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>1</integer>
</map>
<key>ForceMandatoryUpdate</key>
<map>
<key>Comment</key>

View File

@ -2993,16 +2993,19 @@ bool LLAppViewer::initConfiguration()
}
// </FS>
// <FS:CR> Set ForceShowGrid to TRUE on first run if we're on an OpenSim build
#ifdef OPENSIM
if (!gSavedSettings.getBOOL("ForceShowGrid"))
gSavedSettings.setBOOL("ForceShowGrid", TRUE);
#endif // OPENSIM
// </FS:CR>
gSavedSettings.setBOOL("FirstRunThisInstall", FALSE);
}
// <FS:Beq> FIRE-29819 Set ForceShowGrid to TRUE always, unless expressly disabled
// FSOpenSimAlwaysForcesShowGrid is added to allow closed grids to soft disable the default behaviour
#if OPENSIM && !SINGLEGRID
if (!gSavedSettings.getBOOL("ForceShowGrid") && gSavedSettings.getBOOL("FSOpenSimAlwaysForceShowGrid"))
{
gSavedSettings.setBOOL("ForceShowGrid", TRUE);
}
#endif
// </FS:Beq>
// <FS:CR> Compatibility with old backups
// Put gSavedSettings here, gSavedPerAccountSettings in llstartup.cpp
// *TODO: Should we keep these around forever or just three release cycles?