widgets: policycheck_view typo cleanup
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -13,7 +13,7 @@ use crate::{
|
||||
callbacks::policycheck_state::*,
|
||||
};
|
||||
|
||||
// Macro that initializes the widget structures/variables for our view (essential!)
|
||||
// Macro that initializes the widget structures/variables for our view
|
||||
widget!(
|
||||
/// Dialog to enter a policy identifier/number.
|
||||
/// This identifier is checked agains a map of valid policy codes.
|
||||
@@ -185,10 +185,11 @@ impl Template for PolicyCheckView {
|
||||
// .on_mouse_down | .on_mouse_move | .on_mouse_up (move |ctx, entity| {
|
||||
// state(id, states).action(Action::AddItem);
|
||||
// })
|
||||
// .on_click(move |states, _| {
|
||||
// state(id, states).action(Action::AddItem);
|
||||
//.on_key_down(move |ctx, _| {
|
||||
// ctx.get_mut::<PolicyCheckState>(id)
|
||||
// .action(Action::ImportData);
|
||||
// true
|
||||
// })
|
||||
//})
|
||||
.build(ctx),
|
||||
)
|
||||
.child(policy_check_button_result)
|
||||
@@ -297,7 +298,7 @@ impl Template for PolicyCheckView {
|
||||
.enabled(true)
|
||||
.build(ctx);
|
||||
|
||||
// Starter page: check policy numbers
|
||||
// Starter page: check policy numbers
|
||||
self.name("PolicyCheckView")
|
||||
// initialize struct (derived default macro)
|
||||
.policy_check(PolicyCheck::default())
|
||||
|
||||
Reference in New Issue
Block a user