phone_manager: ignore AP list hovered temporarily

The access-point-list hovered state prevents preseting the available
scan results, which currently can happen unintentionally. This commit
hot-wires the hover handling and thus will always show and update the
list.  New scan results are received every few seconds and it could
happen that the list changes while the user selects a network (that's
what the original implementation guards against).

Issue #5369.
This commit is contained in:
Josef Söntgen 2024-10-29 13:02:39 +01:00 committed by Christian Helmuth
parent aafd03ee74
commit 2d3170124d

View File

@ -376,10 +376,11 @@ struct Sculpt::Main : Input_event_handler,
*/
bool ap_list_hovered() const override
{
return _main_view.if_hovered([&] (Hovered_at const &at) {
return _network_widget.if_hovered(at, [&] (Hovered_at const &at) {
return _network_widget.hosted.if_hovered(at, [&] (Hovered_at const &at) {
return _network_widget.hosted.ap_list_hovered(at); }); }); });
/*
* For now always report false so that scan-results
* will always be presented.
*/
return false;
}
/**