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:
Michael Mc Donnell 2024-09-20 13:25:21 -10:00
parent ddb678ca69
commit 133b47e56b

View file

@ -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]