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
This commit is contained in:
parent
721eeb994e
commit
50fc7d1276
|
@ -1228,6 +1228,8 @@ _wireless_gadget_refresh(Instance *inst)
|
||||||
avail++;
|
avail++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!avail)
|
||||||
|
{
|
||||||
for (type = WIRELESS_SERVICE_TYPE_WIFI; type < WIRELESS_SERVICE_TYPE_LAST; type++)
|
for (type = WIRELESS_SERVICE_TYPE_WIFI; type < WIRELESS_SERVICE_TYPE_LAST; type++)
|
||||||
{
|
{
|
||||||
if (!inst->icon[type]) continue;
|
if (!inst->icon[type]) continue;
|
||||||
|
@ -1238,6 +1240,7 @@ _wireless_gadget_refresh(Instance *inst)
|
||||||
evas_object_show(inst->icon[type]);
|
evas_object_show(inst->icon[type]);
|
||||||
avail++;
|
avail++;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!avail)
|
if (!avail)
|
||||||
{
|
{
|
||||||
type = WIRELESS_SERVICE_TYPE_ETHERNET;
|
type = WIRELESS_SERVICE_TYPE_ETHERNET;
|
||||||
|
|
Loading…
Reference in New Issue