From 9f3933d7e4d6cdab57123b73a2974e2c375b6027 Mon Sep 17 00:00:00 2001 From: Beq Date: Thu, 26 Nov 2020 18:23:27 +0000 Subject: [PATCH] FIRE-29819 - [OPENSIM] Always enable grid select in OS (with override) --- indra/newview/app_settings/settings.xml | 11 +++++++++++ indra/newview/llappviewer.cpp | 15 +++++++++------ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 9391b923ec..4f2c0ab78a 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -6648,6 +6648,17 @@ Value 0 + FSOpenSimAlwaysForceShowGrid + + Comment + Soft enable/disable the startup behaviour of OpenSim builds to allow gridlist access + Persist + 1 + Type + Boolean + Value + 1 + ForceMandatoryUpdate Comment diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 68d8e0cc83..9623545256 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -2993,16 +2993,19 @@ bool LLAppViewer::initConfiguration() } // -// 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 -// gSavedSettings.setBOOL("FirstRunThisInstall", FALSE); } +// 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 +// // Compatibility with old backups // Put gSavedSettings here, gSavedPerAccountSettings in llstartup.cpp // *TODO: Should we keep these around forever or just three release cycles?