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
parent
b50ed1fcbd
commit
fa653e9ddc
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue