callbacks: update commenting code in policycheck_state
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -688,7 +688,6 @@ fn create_menu(menu: Entity, ctx: &mut BuildContext<'_>) -> Entity {
|
|||||||
.child(
|
.child(
|
||||||
Button::new()
|
Button::new()
|
||||||
.id(ID_POLICY_CHECK_MENU_LABEL_QUIT)
|
.id(ID_POLICY_CHECK_MENU_LABEL_QUIT)
|
||||||
//.style("body")
|
|
||||||
.style("button_menu")
|
.style("button_menu")
|
||||||
.attach(Grid::row(2))
|
.attach(Grid::row(2))
|
||||||
.attach(Grid::column(0))
|
.attach(Grid::column(0))
|
||||||
@@ -697,16 +696,12 @@ fn create_menu(menu: Entity, ctx: &mut BuildContext<'_>) -> Entity {
|
|||||||
.on_mouse_down(move |_states, _| {
|
.on_mouse_down(move |_states, _| {
|
||||||
process::exit(0);
|
process::exit(0);
|
||||||
})
|
})
|
||||||
// .on_key_down(move | ctx, "Ctlr+Q"| {
|
|
||||||
// process::exit(0);
|
|
||||||
// })
|
|
||||||
.build(ctx),
|
.build(ctx),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
TextBlock::new()
|
TextBlock::new()
|
||||||
.id(ID_POLICY_CHECK_MENU_SHORTCUT_QUIT)
|
.id(ID_POLICY_CHECK_MENU_SHORTCUT_QUIT)
|
||||||
.style("button_menu")
|
.style("button_menu")
|
||||||
//.style("body")
|
|
||||||
.attach(Grid::row(2))
|
.attach(Grid::row(2))
|
||||||
.attach(Grid::column(2))
|
.attach(Grid::column(2))
|
||||||
.margin((0, 0, 16, 0))
|
.margin((0, 0, 16, 0))
|
||||||
|
|||||||
Reference in New Issue
Block a user