Notifications do not propagate to an AppDelegate event handler
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 9.7k
- Forks
- 565
- PR merge metrics
- No merged PRs in 30d
Description
I'm just starting to experiment with druid and ran into some confusion when trying to handle notifications within an AppDelegate event function. It appears the top-level window eats it after printing out a couple INFO logs.
After running into this issue I came across #1388 that lists a use case of implementing list selection via a notification. I'm attempting to have a Label widget from my list notify my AppDelegate that it's been selected. The delegate will then send commands to the label to change it's background color (and tell any previously selected label to unset its background). Eventually there will be more orchestration commands to different sections of UI.
The AppDelegate seems like a good place to put this orchestration logic. Is this lack of propagation intentional or an oversight?
Thanks for all the effort going into druid. I really like the composability of the various widgets and it feels well designed! Looking forward to watching it mature.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing notification handling between the Label widget, the top-level window, and the AppDelegate event function. Determine whether the top-level window intentionally consumes notifications or whether they should reach the delegate; done means the propagation behavior and expected orchestration path are established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100