discomfitor pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=50fc7d127660788b479d99ec761f086bb8459496
commit 50fc7d127660788b479d99ec761f086bb8459496 Author: Mike Blumenkrantz <zm...@osg.samsung.com> Date: Tue Sep 12 13:21:09 2017 -0400 always hide wireless non-wired icons in gadget if wired connection exists the most common use case when using a wired connection is to not also be using a wireless connection --- src/modules/wireless/wireless.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/modules/wireless/wireless.c b/src/modules/wireless/wireless.c index 141fe69c6..f631e03ca 100644 --- a/src/modules/wireless/wireless.c +++ b/src/modules/wireless/wireless.c @@ -1228,15 +1228,18 @@ _wireless_gadget_refresh(Instance *inst) avail++; } } - for (type = WIRELESS_SERVICE_TYPE_WIFI; type < WIRELESS_SERVICE_TYPE_LAST; type++) + if (!avail) { - if (!inst->icon[type]) continue; - if ((wireless_config->disabled_types & (1U << type)) == (1U << type)) continue; - if (wireless_type_enabled[type] && (!wireless_network_count[type])) continue; - - elm_box_pack_end(inst->box, inst->icon[type]); - evas_object_show(inst->icon[type]); - avail++; + for (type = WIRELESS_SERVICE_TYPE_WIFI; type < WIRELESS_SERVICE_TYPE_LAST; type++) + { + if (!inst->icon[type]) continue; + if ((wireless_config->disabled_types & (1U << type)) == (1U << type)) continue; + if (wireless_type_enabled[type] && (!wireless_network_count[type])) continue; + + elm_box_pack_end(inst->box, inst->icon[type]); + evas_object_show(inst->icon[type]); + avail++; + } } if (!avail) { --