callbacks: update commenting code in policycheck_state

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-08-28 11:56:22 +02:00
parent 13d56e2e05
commit 645ea50350

View File

@@ -688,7 +688,6 @@ fn create_menu(menu: Entity, ctx: &mut BuildContext<'_>) -> Entity {
.child(
Button::new()
.id(ID_POLICY_CHECK_MENU_LABEL_QUIT)
//.style("body")
.style("button_menu")
.attach(Grid::row(2))
.attach(Grid::column(0))
@@ -697,16 +696,12 @@ fn create_menu(menu: Entity, ctx: &mut BuildContext<'_>) -> Entity {
.on_mouse_down(move |_states, _| {
process::exit(0);
})
// .on_key_down(move | ctx, "Ctlr+Q"| {
// process::exit(0);
// })
.build(ctx),
)
.child(
TextBlock::new()
.id(ID_POLICY_CHECK_MENU_SHORTCUT_QUIT)
.style("button_menu")
//.style("body")
.attach(Grid::row(2))
.attach(Grid::column(2))
.margin((0, 0, 16, 0))