Skip to content

Commit

Permalink
Fix multi-window example
Browse files Browse the repository at this point in the history
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 pop-os#616
  • Loading branch information
MichaelMcDonnell committed Sep 20, 2024
1 parent ddb678c commit 133b47e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/multi-window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 133b47e

Please sign in to comment.