iovxw / ksni

A Rust implementation of the KDE/freedesktop StatusNotifierItem specification
The Unlicense
73 stars 11 forks source link

Rendering different menu during runtime. #9

Closed emirror-de closed 3 years ago

emirror-de commented 3 years ago

I changed the provided example to this one. However, the menu does not get updated. When clicking on a StandardItem it panics with the following error:

thread '<unnamed>' panicked at 'index out of bounds: the len is 2 but the index is 3', /home/projects/ksni/src/service.rs:702:32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Is it possible to update the menu during runtime?

iovxw commented 3 years ago

Fixed! Thank you for the report!