SL-17463: Set the default for MiniMapRotate back to true (enable minimap rotation by default), but set MiniMapRotate to false for new installs

meow-7.2.2
Cosmic Linden 2022-05-20 11:56:31 -07:00
parent eaf9171aca
commit 6fb787cd10
2 changed files with 11 additions and 1 deletions

View File

@ -6797,7 +6797,10 @@
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<integer>0</integer>
<!-- *HACK: On first run, set this to 0 for new users,
otherwise the default is 1 to maintain consistent experience
for existing users. Hardcoded in llnetmap.cpp -->
<integer>1</integer>
</map>
<key>MiniMapScale</key>
<map>

View File

@ -106,6 +106,13 @@ LLNetMap::LLNetMap (const Params & p)
mPopupMenu(NULL)
{
mScale = gSavedSettings.getF32("MiniMapScale");
if (gAgent.isFirstLogin())
{
// *HACK: On first run, set this to false for new users, otherwise the
// default is true to maintain consistent experience for existing
// users.
gSavedSettings.setBOOL("MiniMapRotate", false);
}
mPixelsPerMeter = mScale / REGION_WIDTH_METERS;
mDotRadius = llmax(DOT_SCALE * mPixelsPerMeter, MIN_DOT_RADIUS);
}