src/eric7/MicroPython/MicroPythonWidget.py

branch
eric7
changeset 10138
56614cf9d03c
parent 10034
bf2d02317ba6
child 10144
45a9177c8e77
equal deleted inserted replaced
10137:fe5195fba5f7 10138:56614cf9d03c
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

eric ide

mercurial