policycheck_state: set_visibility: make param entity non-required
Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -236,7 +236,7 @@ impl PolicyCheckState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Update count of elements in the policy data list.
|
// Update count of elements in the policy data list.
|
||||||
fn update_data_count(&self, ctx: &mut Context<'_>) {
|
fn _update_data_count(&self, ctx: &mut Context<'_>) {
|
||||||
// old api syntax
|
// old api syntax
|
||||||
let data_list_count = ctx.widget().get::<PolicyDataList>(PROP_POLICY_DATA_LIST).len();
|
let data_list_count = ctx.widget().get::<PolicyDataList>(PROP_POLICY_DATA_LIST).len();
|
||||||
ctx.widget().set(PROP_POLICY_DATA_COUNT, data_list_count);
|
ctx.widget().set(PROP_POLICY_DATA_COUNT, data_list_count);
|
||||||
|
|||||||
Reference in New Issue
Block a user