add files to list-box in one operation
svn: r2228
This commit is contained in:
parent
23249ced6f
commit
466c885eca
|
@ -187,11 +187,10 @@
|
||||||
(send t set-value dir)
|
(send t set-value dir)
|
||||||
(send (send t get-editor) select-all))
|
(send (send t get-editor) select-all))
|
||||||
(preferences:set last-dir-key dir)
|
(preferences:set last-dir-key dir)
|
||||||
(send files-list clear)
|
(send files-list set
|
||||||
(for-each (lambda (f) (send files-list append f))
|
(mergesort (map ->string
|
||||||
(mergesort (map ->string
|
(filter file-exists? (directory-list)))
|
||||||
(filter file-exists? (directory-list)))
|
string<?))
|
||||||
string<?))
|
|
||||||
(if (< 0 (send files-list get-number))
|
(if (< 0 (send files-list get-number))
|
||||||
(begin (apply do-selections sel+unsel)
|
(begin (apply do-selections sel+unsel)
|
||||||
(send files-list enable #t)
|
(send files-list enable #t)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user