Skip to content

Conversation

@akleshchev
Copy link
Contributor

Decided that simply disabling menu isn't a nice mehanics, warning user about region being down/removed instead.

@github-actions github-actions bot added the c/cpp label Dec 8, 2025
@akleshchev akleshchev linked an issue Dec 8, 2025 that may be closed by this pull request
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #3612 by improving the user experience when trying to copy SLURL or show landmarks on the map for regions that are unavailable or have been removed. Instead of silently disabling the menu options, the code now displays a warning notification to inform users about the issue.

Key Changes:

  • Added a new notification message "LandmarkLocationUnknown" to inform users when a landmark's region location cannot be retrieved
  • Modified the enableSelected method to check for landmark asset existence rather than valid position, allowing the menu items to remain enabled
  • Updated the doToSelected method to display the notification when position retrieval fails for both "copy_slurl" and "show_on_map" actions

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
indra/newview/skins/default/xui/en/notifications.xml Adds new notification message for when landmark location is unavailable
indra/newview/llfavoritesbar.cpp Updates menu enable logic and adds notification display when landmark position cannot be retrieved

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@akleshchev akleshchev merged commit 49c73ac into release/2026.01 Dec 8, 2025
12 checks passed
@akleshchev akleshchev deleted the andreyk/viewer_3612 branch December 8, 2025 13:56
@github-actions github-actions bot locked and limited conversation to collaborators Dec 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Copy SLURL" from Favorites bar not working.

4 participants