Commits

Yuya Nishihara  committed a2cddf9

workbench, reporegistry: drop extra processEvents() at bootup

It isn't ready for user input during bootup sequence. This also reduces
overhead by 100msec order.

  • Participants
  • Parent commits cc1f679

Comments (0)

Files changed (2)

File tortoisehg/hgqt/repotreemodel.py

     def loadSubrepos(self, root, filterFunc=(lambda r: True)):
         repoList = getRepoItemList(root)
         for n, c in enumerate(repoList):
-            QCoreApplication.processEvents()
             if filterFunc(c.rootpath()):
                 if self.showNetworkSubrepos \
                         or not paths.netdrive_status(c.rootpath()):
                         _('Updating repository registry'),
                         _('Loading repository %s')
                         % hglib.tounicode(c.rootpath()))
-                    QCoreApplication.processEvents()
                     self.removeRows(0, c.childCount(),
                         self.createIndex(c.row(), 0, c))
                     c.appendSubrepos()

File tortoisehg/hgqt/workbench.py

             self.progress(_('Reopening tabs'), n,
                           _('Reopening repository %s') % upath, '',
                           len(openrepos))
-            QCoreApplication.processEvents()
             try:
                 repo = thgrepo.repository(path=hglib.fromunicode(upath))
                 self.addRepoTab(repo, bundle=None)
             except RepoError:
                 pass  # just ignore missing repository
-            QCoreApplication.processEvents()
         self.progress(_('Reopening tabs'), None, '', '', None)
 
         # Activate the tab that was last active on the last session (if any)