Commit 060cc831 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

repowidget: update action availability on outgoingMode cleared (refs #5701)

Otherwise outgoing actions could be triggered by shortcut key.

--HG--
branch : stable
parent 87b92ac93cd4
Pipeline #22901 failed with stage
in 24 minutes and 25 seconds
......@@ -585,8 +585,9 @@ class RepoWidget(QWidget):
def setRevisionSet(self, revspec):
self.repomodel.setRevset(revspec)
if not revspec:
if not revspec and self.outgoingMode:
self.outgoingMode = False
self._updateNamedActions()
@pyqtSlot(bool)
def filterToggled(self, checked):
......@@ -1158,6 +1159,7 @@ class RepoWidget(QWidget):
"""
self.syncDemand.get().push(confirm, **kwargs)
self.outgoingMode = False
self._updateNamedActions()
def syncBookmark(self):
self.syncDemand.get().syncBookmark()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment