968 Private slot to populate the Super Menu before showing it. |
968 Private slot to populate the Super Menu before showing it. |
969 """ |
969 """ |
970 self.__superMenu.clear() |
970 self.__superMenu.clear() |
971 |
971 |
972 if self.__device: |
972 if self.__device: |
973 hasMip = self.__device.getDeviceData("mip") |
973 networkConnected = self.__device.isNetworkConnected() |
974 hasUPip = self.__device.getDeviceData("upip") |
974 useLocalMip = ( |
975 useLocalMip = self.__device.getDeviceData("local_mip") |
975 ( |
|
976 self.__device.getDeviceData("mip") |
|
977 or self.__device.getDeviceData("upip") |
|
978 ) and not networkConnected |
|
979 ) or self.__device.getDeviceData("local_mip") |
|
980 hasMip = self.__device.getDeviceData("mip") and networkConnected |
|
981 hasUPip = self.__device.getDeviceData("upip") and networkConnected |
976 else: |
982 else: |
977 hasMip = False |
983 hasMip = False |
978 hasUPip = False |
984 hasUPip = False |
979 useLocalMip = False |
985 useLocalMip = False |
980 |
986 |