MAINT-7458 FIXED Release notes opens every time after any problem with logining, until viewer will be relaunched.
parent
81f4da6468
commit
d700552b44
|
|
@ -2268,13 +2268,15 @@ void login_callback(S32 option, void *userdata)
|
|||
*/
|
||||
void show_release_notes_if_required()
|
||||
{
|
||||
if (LLVersionInfo::getChannelAndVersion() != gLastRunVersion
|
||||
static bool release_notes_shown = false;
|
||||
if (!release_notes_shown && (LLVersionInfo::getChannelAndVersion() != gLastRunVersion)
|
||||
&& LLVersionInfo::getViewerMaturity() != LLVersionInfo::TEST_VIEWER // don't show Release Notes for the test builds
|
||||
&& gSavedSettings.getBOOL("UpdaterShowReleaseNotes")
|
||||
&& !gSavedSettings.getBOOL("FirstLoginThisInstall"))
|
||||
{
|
||||
LLSD info(LLAppViewer::instance()->getViewerInfo());
|
||||
LLWeb::loadURLInternal(info["VIEWER_RELEASE_NOTES_URL"]);
|
||||
release_notes_shown = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue