fix(menu inner): avoid unnecessary panic in debug builds.
This commit is contained in:
parent
3f4a50ee2c
commit
4c6061d40a
1 changed files with 0 additions and 3 deletions
|
|
@ -1161,7 +1161,6 @@ pub(super) fn init_root_menu<Message: Clone>(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
debug_assert!(set, "Root not set");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1242,8 +1241,6 @@ pub(super) fn init_root_popup_menu<Message>(
|
||||||
|
|
||||||
// Hack to ensure menu opens properly
|
// Hack to ensure menu opens properly
|
||||||
shell.invalidate_layout();
|
shell.invalidate_layout();
|
||||||
// non tree buttons arent active?
|
|
||||||
debug_assert!(set, "Root popup menu state was not set.");
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue