mirror of
https://github.com/danbulant/cushy
synced 2026-06-16 13:01:11 +00:00
Reverting example change
Was an unrelated test, oops.
This commit is contained in:
parent
60c7ef8859
commit
fbabbdbd99
1 changed files with 0 additions and 3 deletions
|
|
@ -3,16 +3,13 @@ use cushy::{
|
|||
widget::MakeWidget,
|
||||
Run,
|
||||
};
|
||||
use figures::{units::UPx, Size};
|
||||
|
||||
fn main() -> cushy::Result {
|
||||
let has_unsaved_changes = Dynamic::new(true);
|
||||
let inner_size = Dynamic::new(Size::new(UPx::new(1000), UPx::new(800)));
|
||||
|
||||
"Prevent Closing"
|
||||
.into_checkbox(has_unsaved_changes.clone())
|
||||
.into_window()
|
||||
.on_close_requested(move |()| !has_unsaved_changes.get())
|
||||
.inner_size(inner_size)
|
||||
.run()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue