Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.9, 0.9.1, and 0.9.1.1

update: show result text and icon

Changeset c8be9a326541

Parent 6e3e33dc0506

by Yuki KODAMA

Changes to one file · Browse files at c8be9a326541 Showing diff from parent 6e3e33dc0506 Diff from another changeset...

 
323
324
325
326
 
327
328
329
330
331
 
 
 
 
 
 
 
 
332
333
334
 
323
324
325
 
326
327
328
329
 
 
330
331
332
333
334
335
336
337
338
339
340
@@ -323,12 +323,18 @@
  else:   raise _('invalid dialog result: %s') % ret   - def cmd_done(returncode): + def cmd_done(returncode, useraborted):   self.switch_to(MODE_NORMAL, cmd=False)   if hasattr(self, 'notify_func'):   self.notify_func(self.notify_args) - if returncode == 0 and not self.cmd.is_show_log(): - self.response(gtk.RESPONSE_CLOSE) + if returncode == 0: + if not self.cmd.is_show_log(): + self.response(gtk.RESPONSE_CLOSE) + self.cmd.set_result(_('Updated successfully'), style='ok') + elif useraborted: + self.cmd.set_result(_('Canceled updating'), style='error') + else: + self.cmd.set_result(_('Failed to update'), style='error')   self.switch_to(MODE_WORKING)   self.cmd.execute(cmdline, cmd_done)