Changeset de6b1d7dda9e…
Parent 91fa36caa534…
by
Changes to one file · Browse files at de6b1d7dda9e Showing diff from parent 91fa36caa534 Diff from another changeset...
@@ -107,14 +107,17 @@ repo.ui.configbool('tortoisehg', 'autoresolve', False))
## command widget
- self.cmd = cmdui.Widget()
+ if self.parent:
+ self.cmd = cmdui.Runner(_('TortoiseHg Update'), False, self)
+ else:
+ self.cmd = cmdui.Widget(True, self)
+ box.addWidget(self.cmd)
self.cmd.commandStarted.connect(self.command_started)
self.cmd.commandFinished.connect(self.command_finished)
self.cmd.commandCanceling.connect(self.command_canceling)
self.cmd.output.connect(self.output)
self.cmd.makeLogVisible.connect(self.makeLogVisible)
self.cmd.progress.connect(self.progress)
- box.addWidget(self.cmd)
## bottom buttons
buttons = QDialogButtonBox()
@@ -285,7 +288,7 @@ self.update_btn.setHidden(True)
self.close_btn.setHidden(True)
self.cancel_btn.setShown(True)
- self.detail_btn.setShown(True)
+ self.detail_btn.setShown(not self.parent())
def command_finished(self, ret):
self.repo.decrementBusyCount()
|
Loading...