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 |