Commits

Yuya Nishihara committed 6eb103b

insert fix of empty restore

Comments (0)

Files changed (1)

wb-delayload.diff

 # HG changeset patch
-# Parent 2f3071a5f24adc96dc4e1cbc708b5c9511f38d49
+# Parent c4b7eb3879484bf7acc1ab8a317aa87f8cb3df5c
 workbench: postpone loading repos and reporegistry after window visible
 
 It won't change the whole startup speed, but will make feel a bit fast.
 -        # This may be a lengthy operation, which happens before the Workbench GUI is open
 -        # We use a progress dialog to let the user know that the workbench is being loaded
 +        # This may be a lengthy operation
-         openrepos = unicode(s.value(wb + 'openrepos').toString()).split(',')
-         for n, upath in enumerate(openrepos):
-             self.progress(_('Reopening tabs'), n,
-@@ -1211,26 +1209,28 @@ def run(ui, *pats, **opts):
+         openreposvalue = unicode(s.value(wb + 'openrepos').toString())
+         if openreposvalue:
+             openrepos = openreposvalue.split(',')
+@@ -1215,26 +1213,28 @@ def run(ui, *pats, **opts):
          mustcreateserver = not serverexists
  
      w = Workbench()