examples: fix libcosmic features, warnings, etc.
This commit is contained in:
parent
f39ad728c9
commit
05c6608842
23 changed files with 40 additions and 46 deletions
|
|
@ -10,6 +10,5 @@ tracing-log = "0.2.0"
|
|||
chrono = "*"
|
||||
|
||||
[dependencies.libcosmic]
|
||||
features = ["debug", "multi-window", "wayland", "winit", "desktop", "tokio"]
|
||||
features = ["debug", "wgpu", "winit", "desktop", "tokio"]
|
||||
path = "../.."
|
||||
default-features = false
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ impl cosmic::Application for App {
|
|||
}
|
||||
|
||||
/// Creates a view after each update.
|
||||
fn view(&self) -> Element<Self::Message> {
|
||||
fn view(&self) -> Element<'_, Self::Message> {
|
||||
cosmic::widget::responsive(|size| {
|
||||
if size.width < 600.0 {
|
||||
widget::compact_table(&self.table_model)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue