From 93070accf2681cd0cf29e536bb3abd58bd616dce Mon Sep 17 00:00:00 2001 From: "razvan.iliescu2912" Date: Fri, 15 Nov 2024 11:33:32 +0200 Subject: [PATCH] Changed the example accordingly --- cursive/examples/dialog.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cursive/examples/dialog.rs b/cursive/examples/dialog.rs index 1ac86083..4461771b 100644 --- a/cursive/examples/dialog.rs +++ b/cursive/examples/dialog.rs @@ -1,5 +1,5 @@ use cursive::{ - views::{CircularFocus, Dialog, TextView}, With as _ + direction, views::{CircularFocus, Dialog, TextView}, With as _ }; fn main() { @@ -10,7 +10,7 @@ fn main() { siv.add_layer( // Most views can be configured in a chainable way Dialog::around(TextView::new("Hello Dialog!")) - .set_button_orientation(true) + .set_button_orientation(direction::Orientation::Vertical) .title("Cursive") .button("Foo", |_s| ()) .button("Bar", |_s| ())