Skip to content
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

appDisplay: Handle an error moving nonexistent app icons #754

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dylanmccall
Copy link
Contributor

With the added set of application aliases, it is possible that BaseAppGridViewLayout._redisplay will call _moveItem for an application which is no longer present in the icon grid. This requires an unusual series of events, so for simplicity, we will simply log the exception and carry on.

https://phabricator.endlessm.com/T34672

With the added set of application aliases, it is possible that
BaseAppGridViewLayout._redisplay will call _moveItem for an application
which is no longer present in the icon grid. This requires an unusual
series of events, so for simplicity, we will simply log the exception
and carry on.

https://phabricator.endlessm.com/T34672
Comment on lines +1105 to +1109
try {
this._moveItem(icon, page, position);
} catch (error) {
log(`Error moving app icon: ${error.message}`);
}
Copy link
Member

Choose a reason for hiding this comment

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

I'm sure this will suppress the error but it doesn't seem like the right way to handle this. If you have two apps in your app grid layout, and one becomes an alias for the other, the old name should be removed from the layout, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants