policycheck_state: set_visibility: make param entity non-required

Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
2020-07-05 23:41:06 +02:00
parent ce7f802d3a
commit ebaf05132f

View File

@@ -236,7 +236,7 @@ impl PolicyCheckState {
}
// 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
let data_list_count = ctx.widget().get::<PolicyDataList>(PROP_POLICY_DATA_LIST).len();
ctx.widget().set(PROP_POLICY_DATA_COUNT, data_list_count);