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

Fix mapped Operation always returning Outcome::None #1536

Merged
merged 2 commits into from
Nov 13, 2022

Conversation

rs017991
Copy link
Contributor

@rs017991 rs017991 commented Nov 13, 2022

Fixes #1535.

This fixes the scrollable issue and the basic focus issue from the reproduction in the linked issue.

However, focus_previous and focus_next remain broken.
I suspect that this is due to missing finish implementations in both Map and MapRef.
After staring at it for a while, I was unable to divine what that method is even supposed to do in this situation, so I'll leave that to someone more knowledgeable.

Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Good catch! I have implemented finish for action::widget::Map. MapRef doesn't necessarily need to implement it, since calling finish on an Operation that you do not own breaks its contract.

@hecrj hecrj added bug Something isn't working shell labels Nov 13, 2022
@hecrj hecrj added this to the 0.6.0 milestone Nov 13, 2022
@hecrj hecrj changed the title Partially Fixed Mapped Operations Fix mapped Operation always returning Outcome::None Nov 13, 2022
@hecrj hecrj merged commit cf410a5 into iced-rs:master Nov 13, 2022
@rs017991 rs017991 deleted the op_bug_fix_map branch November 13, 2022 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Operations Broken when mapped
2 participants