chore: make dbus-config optional
Also fixes some lints.
This commit is contained in:
parent
6d9cd3e7e5
commit
131cf7e8cd
6 changed files with 123 additions and 90 deletions
|
|
@ -114,14 +114,14 @@ impl Application for App {
|
|||
Task::none()
|
||||
}
|
||||
|
||||
fn view_window(&self, window_id: window::Id) -> Element<Message> {
|
||||
fn view_window(&self, window_id: window::Id) -> Element<'_, Message> {
|
||||
match &self.dialog_opt {
|
||||
Some(dialog) => dialog.view(window_id),
|
||||
None => widget::text::body("No dialog").into(),
|
||||
}
|
||||
}
|
||||
|
||||
fn view(&self) -> Element<Message> {
|
||||
fn view(&self) -> Element<'_, Message> {
|
||||
let mut column = widget::column().spacing(8).padding(8);
|
||||
{
|
||||
let mut button = widget::button::standard("Open File");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue