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

Book: Chapter 9...Expressions: Strange behaviour of List on double-click #1599

Open
Maikel1963 opened this issue Feb 7, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Maikel1963
Copy link

The pace in the book ist here a bit fast for me (compared to the beginning). So I just copied "gtk4-rs/book/listings/list_widgets/5/" to explore the execution when changing something. If you compile the complete example and double click on one item the list will be shorter. I understood that double clicking should change the value in the displayed IntegerObject. But the entry just vanishes. It becomes clearer if you reduce the number of IntegerObjects at the beginning e.g.

// Create a `Vec<IntegerObject>` with numbers from 0 to 100_000
    let vector: Vec<IntegerObject> = (0..=40).map(IntegerObject::new).collect();

@Maikel1963 Maikel1963 added the bug Something isn't working label Feb 7, 2024
@Maikel1963 Maikel1963 changed the title Book: Capter 9...Expressions: Strange behaviour of List on double-click Book: Chapter 9...Expressions: Strange behaviour of List on double-click Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant