Fix multi-window example
It looks like the multi-window example was recently broken by f12de01.
The `button` function was renamed to `custom` but the code didn't get
updated.
This fixes issue #616
This commit is contained in:
parent
ddb678ca69
commit
133b47e56b
1 changed files with 1 additions and 1 deletions
|
|
@ -136,7 +136,7 @@ impl cosmic::Application for MultiWindow {
|
|||
.focused_window()
|
||||
.map(|i| i == id)
|
||||
.unwrap_or_default();
|
||||
let new_window_button = button(text("New Window")).on_press(Message::NewWindow);
|
||||
let new_window_button = button::custom(text("New Window")).on_press(Message::NewWindow);
|
||||
|
||||
let content = scrollable(
|
||||
column![input, new_window_button]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue