Skip to content

Commit

Permalink
Changed the example accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
razvan.iliescu2912 committed Nov 15, 2024
1 parent 259e909 commit 93070ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cursive/examples/dialog.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use cursive::{
views::{CircularFocus, Dialog, TextView}, With as _
direction, views::{CircularFocus, Dialog, TextView}, With as _
};

fn main() {
Expand All @@ -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| ())
Expand Down

0 comments on commit 93070ac

Please sign in to comment.