sculpt: reset routing dialog after add-component

Issue #5174
This commit is contained in:
Norman Feske 2024-04-15 15:14:24 +02:00 committed by Christian Helmuth
parent 22f0ab926b
commit 4c4adec5ad
2 changed files with 7 additions and 1 deletions

View File

@ -157,6 +157,8 @@ struct Sculpt::Component_add_widget : Widget<Vbox>
_runtime_config(runtime_config)
{ }
void reset() { _selected_route = { }; }
void view(Scope<Vbox> &s, Component const &component) const
{
_view_pkg_elements(s, component);

View File

@ -210,7 +210,11 @@ struct Sculpt::Software_add_widget : Widget_interface<Vbox>
});
}
void _reset_menu() { _menu.reset(); }
void _reset_menu()
{
_menu.reset();
_component_add.reset();
}
bool keyboard_needed() const { return _users.keyboard_needed(); }