Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaiyin Zhong committed May 14, 2020
1 parent 43a54a2 commit 8c009ca
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions druid/examples/multiwin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,10 @@ fn ui_builder() -> impl Widget<State> {
let text = LocalizedString::new("hello-counter")
.with_arg("count", |data: &State, _env| data.menu_count.into());
let label = Label::new(text);
let inc_button = Button::<State>::new("Add menu item").on_click(|ctx, data, _env| {
ctx.submit_command(MENU_INCREMENT_ACTION, ctx.window_id())
});
let dec_button = Button::<State>::new("Remove menu item").on_click(|ctx, data, _env| {
ctx.submit_command(MENU_DECREMENT_ACTION, ctx.window_id())
});
let inc_button = Button::<State>::new("Add menu item")
.on_click(|ctx, data, _env| ctx.submit_command(MENU_INCREMENT_ACTION, ctx.window_id()));
let dec_button = Button::<State>::new("Remove menu item")
.on_click(|ctx, data, _env| ctx.submit_command(MENU_DECREMENT_ACTION, ctx.window_id()));
let new_button = Button::<State>::new("New window").on_click(|ctx, _data, _env| {
ctx.submit_command(sys_cmds::NEW_FILE, Target::Global);
});
Expand Down

0 comments on commit 8c009ca

Please sign in to comment.