From bb71e8481ed59f991b9bd9dc55ea7e011ba0aac6 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 16 Mar 2024 16:12:07 +0100 Subject: Make `sandbox` helper take a `title` as well --- examples/layout/src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/layout') diff --git a/examples/layout/src/main.rs b/examples/layout/src/main.rs index fc3a1f82..371f2ae2 100644 --- a/examples/layout/src/main.rs +++ b/examples/layout/src/main.rs @@ -10,8 +10,7 @@ use iced::{ }; pub fn main() -> iced::Result { - iced::sandbox(Layout::update, Layout::view) - .title(Layout::title) + iced::sandbox(Layout::title, Layout::update, Layout::view) .subscription(Layout::subscription) .theme(Layout::theme) .run() -- cgit