summaryrefslogtreecommitdiff
path: root/indra/newview/llagent.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-07-03 23:29:01 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2023-07-03 23:29:26 +0300
commitd3233e787aaf1ba0558a714d5216ea70c7249c36 (patch)
tree4dea9d709f07b04fd0d9e42259a465df90ef8831 /indra/newview/llagent.cpp
parent35d68ce7373812d5ab028505ed035a4678da3ec9 (diff)
SL-19929 New inventory feature notification should appear on top
Diffstat (limited to 'indra/newview/llagent.cpp')
-rw-r--r--indra/newview/llagent.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llagent.cpp b/indra/newview/llagent.cpp
index 2430ca5f83..8574134032 100644
--- a/indra/newview/llagent.cpp
+++ b/indra/newview/llagent.cpp
@@ -582,7 +582,12 @@ void LLAgent::showLatestFeatureNotification()
S32 feature_version = gSavedSettings.getS32("LastUIFeatureVersion");
if (feature_version < UI_FEATURE_VERSION)
{
- LLFloaterReg::showInstance("new_feature_notification");
+ // Need to open on top even if called from onOpen,
+ // do on idle to make sure it's on top
+ doOnIdleOneTime([]()
+ {
+ LLFloaterReg::showInstance("new_feature_notification");
+ });
gSavedSettings.setS32("LastUIFeatureVersion", UI_FEATURE_VERSION);
}
}