Fix image-button example
The image-button example did not work with `just run image-button`. The first problem was that the package name was `cosmic-image-button` and not `image-button`. It was defined as `image-button` in the justfile. The second problem was that the `wayland` feature defines the `set_window_title` as taking an `Id`. The easiest solution was to just use the `winit` feature instead. We can alternatively pass `window::Id::MAIN` if needed.
This commit is contained in:
parent
914d989049
commit
289549fbeb
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
[package]
|
||||
name = "cosmic-image-button"
|
||||
name = "image-button"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
|
@ -10,4 +10,4 @@ tracing-subscriber = "0.3.17"
|
|||
[dependencies.libcosmic]
|
||||
path = "../../"
|
||||
default-features = false
|
||||
features = ["debug", "wayland", "tokio"]
|
||||
features = ["debug", "winit", "tokio"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue