Show mls progress.
This commit is contained in:
		
							parent
							
								
									3aaac4ad0b
								
							
						
					
					
						commit
						8a43dd715c
					
				
					 1 changed files with 12 additions and 7 deletions
				
			
		|  | @ -91,13 +91,18 @@ | |||
|  (define (load-mailman-lists) | ||||
|    (with-progress% | ||||
|     #t "Mailman" | ||||
|     (let loop ((lsts (list-mailman-lists)) | ||||
| 	       (res '())) | ||||
|     (let* ((lists (list-mailman-lists)) | ||||
| 	   (total (length lists))) | ||||
|       (let loop ((lsts lists) | ||||
| 		 (res '()) | ||||
| 		 (idx 0)) | ||||
| 	(if (null? lsts) | ||||
| 	    res | ||||
| 	    (let ((mln (car lsts))) | ||||
| 	      (progress%-advance (/ idx total)) | ||||
| 	      (loop (cdr lsts) | ||||
| 		  (cons res (load-mailman-list mln)))))))) | ||||
| 		    (cons res (load-mailman-list mln)) | ||||
| 		    (add1 idx)))))))) | ||||
| 
 | ||||
|  ;; List of lists, returns the whole list record (including name) | ||||
|  (define (find-mailman-list lsts name) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue