-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
secondlife/viewer#1330 EmojiPicker inserts emoji to inactive chat floater #1348
Conversation
indra/llui/llfloater.cpp
Outdated
@@ -659,6 +659,8 @@ void LLFloater::openFloater(const LLSD& key) | |||
|
|||
LLViewerEventRecorder::instance().logVisibilityChange( getPathname(), getName(), true,"floater"); // Last param is event subtype or empty string | |||
|
|||
LLMenuGL::sMenuContainer->hideMenus(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Scenario:
Open a 'Build->uploads menu'
Detach menu (two lines at the top of 'uploads' sub menu)
Expected: for main menu not to close and allow user to detach more menus
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Detach menu (two lines at the top of 'uploads' sub menu)
Screenshot please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If any floater popup is going to close menu, it will be imposible to navigate menus while receiving script questions, IMs and chat messages (with closed chat they pop up as toasts).
Toasts are supposed to be non distruptive to your current activities including menu navigation.
When you click the toast area outside its buttons, the opened top menu becomes hidden |
If the floater doesn't close the menu, it has a chance to be shown behind this menu - is this OK, you mean? |
af044eb
to
fdfae4a
Compare
Of course. Script questions, IMs and the like aren't supposed to interrupt your menu navigation, they are supposed to be in background untill you decide it's time check it. |
Moved |
fdfae4a
to
d1da7fe
Compare
I don't have a good intuition for behavior in this area, sorry. |
d1da7fe
to
dca08c0
Compare
Your participation was suggested by github, sorry. |
649dd8c
to
56cf54f
Compare
indra/newview/llscreenchannel.cpp
Outdated
if (toast->isModal()) | ||
{ | ||
// If Modal, hide other UI areas temporally shown | ||
toast->hideOtherViews(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personaly I would have prefer for this to be in LLModalDialog::setVisible
There is very little reason for this code to be here, in LLScreenChannel::addToast
indra/llui/llmodaldialog.cpp
Outdated
@@ -345,3 +348,13 @@ void LLModalDialog::shutdownModals() | |||
// simply makes our software look unreliable. | |||
sModalStack.clear(); | |||
} | |||
|
|||
// static | |||
void LLModalDialog::hideOtherViews() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name is very misleading, while meanus are certainly a view, everything else is too.
56cf54f
to
e4e0bdd
Compare
e4e0bdd
to
bf26be1
Compare
Fix for #1330
Use-case A: EmojiPicker should be hidden when the modal (toast) floater is shown - indra\newview\llscreenchannel.cpp
Use-case B: EmojiPicker should be hidden when the top menu is shown - indra\llui\llmenugl.cpp
Use-case C: All menus should be hidden when the modal (toast) floater is shown - indra\llui\llmodaldialog.cpp