Plugins/VcsPlugins/vcsMercurial/FetchExtension/ProjectHelper.py

changeset 3277
b7d9c75223e3
parent 3190
a9a94491c4fd
child 3345
071afe8be2a1
equal deleted inserted replaced
3276:1b7002ea389d 3277:b7d9c75223e3
61 menu.setIcon(UI.PixmapCache.getIcon("vcsUpdate.png")) 61 menu.setIcon(UI.PixmapCache.getIcon("vcsUpdate.png"))
62 menu.setTearOffEnabled(True) 62 menu.setTearOffEnabled(True)
63 63
64 menu.addAction(self.hgFetchAct) 64 menu.addAction(self.hgFetchAct)
65 65
66 menu.aboutToShow.connect(self.__aboutToShowMenu)
67
66 return menu 68 return menu
69
70 def __aboutToShowMenu(self):
71 """
72 Private slot to handle the aboutToShow signal of the background menu.
73 """
74 self.hgFetchAct.setEnabled(self.vcs.canPull())
67 75
68 def menuTitle(self): 76 def menuTitle(self):
69 """ 77 """
70 Public method to get the menu title. 78 Public method to get the menu title.
71 79

eric ide

mercurial