From 133b47e56b89aece1062ccb00f16315a73d899f0 Mon Sep 17 00:00:00 2001 From: Michael Mc Donnell Date: Fri, 20 Sep 2024 13:25:21 -1000 Subject: [PATCH] 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 --- examples/multi-window/src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/multi-window/src/window.rs b/examples/multi-window/src/window.rs index 3fb843b6c4d..76bef91813f 100644 --- a/examples/multi-window/src/window.rs +++ b/examples/multi-window/src/window.rs @@ -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]