Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

repowidget: delay refresh of commit widget for faster appearance

Since commit widget executes some slow operations on refresh, it had poor
response for initial click of commit tab. This patch postpones refresh()
after creation of commit widget, so that it becomes visible soon after
mouse click.

Changeset 52dc83472776

Parent ffe7c3992286

by Yuya Nishihara

Changes to 2 files · Browse files at 52dc83472776 Showing diff from parent ffe7c3992286 Diff from another changeset...

 
224
225
226
 
227
228
229
 
224
225
226
227
228
229
230
@@ -224,6 +224,7 @@
  'Repository is reporting its config files have changed'   self.refresh()   + @pyqtSlot()   def reload(self):   'User has requested a reload'   self.repo.thginvalidate()
 
210
211
212
213
 
214
215
216
 
210
211
212
 
213
214
215
216
@@ -210,7 +210,7 @@
  cw.buttonHBox.addWidget(b)   cw.commitButtonName.connect(lambda n: b.setText(n))   cw.loadConfigs(QSettings()) - cw.reload() + QTimer.singleShot(0, cw.reload)   b.clicked.connect(cw.commit)   self.repo._commitwidget = cw   return SharedWidget(cw)