Make the user defined device type a preference and fix host pool member icon assignment

This commit is contained in:
emanuele-f 2017-08-16 17:57:31 +02:00
parent 08ec407fbb
commit 8b92590287
6 changed files with 40 additions and 30 deletions

View file

@ -74,9 +74,10 @@ if((ifid ~= nil) and (isAdministrator())) then
local icon = ""
if is_mac then
alias = getDeviceName(member.address, 0)
icon = getCustomDeviceType(member.key)
if mac_info ~= nil then
icon = mac_info["device_type"]
if (icon == nil) and (mac_info ~= nil) then
icon = mac_info["devtype"]
end
if alias == host_key then
@ -85,10 +86,6 @@ if((ifid ~= nil) and (isAdministrator())) then
elseif is_host then
alias = getHostAltName(host_key)
if active_hosts[host_key] then
icon = active_hosts[host_key]["device_type"]
end
if alias == host_key then
alias = ""
end