mirror of
https://github.com/danbulant/cushy
synced 2026-07-08 12:40:36 +00:00
parent
54e01f1911
commit
80ba184c15
3 changed files with 0 additions and 6 deletions
|
|
@ -27,8 +27,6 @@ fn main() -> gooey::Result {
|
||||||
.into_button()
|
.into_button()
|
||||||
// Set the `on_click` callback to a closure that increments the counter.
|
// Set the `on_click` callback to a closure that increments the counter.
|
||||||
.on_click(count.with_clone(|count| move |_| count.set(count.get() + 1)))
|
.on_click(count.with_clone(|count| move |_| count.set(count.get() + 1)))
|
||||||
// Position the button in the center
|
|
||||||
.centered()
|
|
||||||
// Run the application
|
// Run the application
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,6 @@ fn main() -> gooey::Result {
|
||||||
.into_button()
|
.into_button()
|
||||||
// Set the `on_click` callback to a closure that increments the counter.
|
// Set the `on_click` callback to a closure that increments the counter.
|
||||||
.on_click(count.with_clone(|count| move |_| count.set(count.get() + 1)))
|
.on_click(count.with_clone(|count| move |_| count.set(count.get() + 1)))
|
||||||
// Position the button in the center
|
|
||||||
.centered()
|
|
||||||
// Run the application
|
// Run the application
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,6 @@ fn main() -> gooey::Result {
|
||||||
.into_button()
|
.into_button()
|
||||||
// Set the `on_click` callback to a closure that increments the counter.
|
// Set the `on_click` callback to a closure that increments the counter.
|
||||||
.on_click(count.with_clone(|count| move |_| count.set(count.get() + 1)))
|
.on_click(count.with_clone(|count| move |_| count.set(count.get() + 1)))
|
||||||
// Position the button in the center
|
|
||||||
.centered()
|
|
||||||
// Run the application
|
// Run the application
|
||||||
.run()
|
.run()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue