Commits

Yuya Nishihara committed 50f1ce3

workbench: make sure to close progress by pos=None

It's a convention of progress API. This fixes short appearance of empty
progress dialog at boot.

Comments (0)

Files changed (1)

tortoisehg/hgqt/workbench.py

             if os.path.isdir(reporoot):
                 self.showRepo(reporoot)
         self.lastClosedRepoRootList = []
-        self.progress(_('Reopening tabs'), len(self.lastClosedRepoRootList),
-            _('All repositories open'), '', len(self.lastClosedRepoRootList))
+        self.progress(_('Reopening tabs'), None, '', '', None)
 
     def repoTabChanged(self, index=0):
         w = self.repoTabsWidget.currentWidget()
             QCoreApplication.processEvents()
             self._openRepo(hglib.fromunicode(upath), False)
             QCoreApplication.processEvents()
-        self.progress(_('Reopening tabs'), len(openrepos),
-                      _('All repositories open'), '', len(openrepos))
+        self.progress(_('Reopening tabs'), None, '', '', None)
 
         # Activate the tab that was last active on the last session (if any)
         # Note that if a "root" has been passed to the "thg" command,