Changeset 8ec656a1114a…
Parent 5b1741b0c4c6…
by
Changes to 2 files · Browse files at 8ec656a1114a Showing diff from parent 5b1741b0c4c6 Diff from another changeset...
@@ -93,6 +93,11 @@ self.closebranch = False
self._last_commit_id = None
self.qnew = False
+ self.notify_func = None
+
+ def set_notify_func(self, func, args):
+ self.notify_func = func
+ self.notify_args = args
def parse_opts(self):
GStatus.parse_opts(self)
@@ -651,6 +656,8 @@ # refresh overlay icons and commit dialog
if dialog.return_code() == 0:
shell_notify([self.cwd] + files)
+ if self.notify_func:
+ self.notify_func(self.notify_args)
self.closebranch = False
self.nextbranch = None
buf = self.text.get_buffer()
|
@@ -139,6 +139,7 @@ import commit
dlg = commit.run(ui.ui())
dlg.set_modal(True)
+ dlg.set_notify_func(self.notify_func, self.notify_args)
dlg.display()
def undo(self, button, local, merge, commit):
|
Loading...