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,5 +10,4 @@ tracing-log = "0.2.0"
|
|||
|
||||
[dependencies.libcosmic]
|
||||
path = "../../"
|
||||
default-features = false
|
||||
features = ["debug", "winit", "tokio", "xdg-portal"]
|
||||
features = ["debug", "winit", "wgpu", "tokio", "xdg-portal"]
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ impl cosmic::Application for App {
|
|||
}
|
||||
|
||||
/// Creates a view after each update.
|
||||
fn view(&self) -> Element<Self::Message> {
|
||||
fn view(&self) -> Element<'_, Self::Message> {
|
||||
let editable = cosmic::widget::editable_input(
|
||||
"Input text here",
|
||||
&self.input,
|
||||
|
|
@ -118,6 +118,6 @@ where
|
|||
fn update_title(&mut self) -> Task<Message> {
|
||||
let window_title = format!("COSMIC TextInputs Demo");
|
||||
self.set_header_title(window_title.clone());
|
||||
self.set_window_title(window_title)
|
||||
self.set_window_title(window_title, self.core.main_window_id().unwrap())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue