Mitigate global online status toggle firing during startup for some people

Prevent GlobalOnlineStatusToggle from triggering confirmation and rights updates while the viewer is still starting up.
Technically, it may actually avoid online status flicker at login / unintended online status changes as well.

Signed-off-by: PanteraPolnocy <panterapolnocy@gmail.com>
master
PanteraPolnocy 2025-12-17 12:29:25 +01:00
parent b50ed1fcbd
commit fa653e9ddc
1 changed files with 5 additions and 0 deletions

View File

@ -913,6 +913,11 @@ void handleUsernameFormatOptionChanged(const LLSD& newvalue)
// <FS:Ansariel> Global online status toggle
void handleGlobalOnlineStatusChanged(const LLSD& newvalue)
{
if (LLStartUp::getStartupState() < STATE_STARTED)
{
// Skip the checks if not inworld; Ignore startup-time setting application, if it somehow fires
return;
}
if (gSavedPerAccountSettings.getBOOL("GlobalOnlineStatusCurrentlyReverting"))
{
gSavedPerAccountSettings.setBOOL("GlobalOnlineStatusCurrentlyReverting", false);