remove non-existent files from the 'open recent' menu (but only when the file is selected)
original commit: 9817820e4ce55d1e8f07653ec14e6c672c3fbb92
This commit is contained in:
parent
8471458b26
commit
a8ce7a4346
|
@ -231,6 +231,9 @@
|
||||||
(when (equal? (send ed get-filename) filename)
|
(when (equal? (send ed get-filename) filename)
|
||||||
(send ed set-position start end)))))]
|
(send ed set-position start end)))))]
|
||||||
[else
|
[else
|
||||||
|
(preferences:set 'framework:recently-opened-files/pos
|
||||||
|
(remove recent-list-item
|
||||||
|
(preferences:get 'framework:recently-opened-files/pos)))
|
||||||
(message-box (string-constant error)
|
(message-box (string-constant error)
|
||||||
(format (string-constant cannot-open-because-dne)
|
(format (string-constant cannot-open-because-dne)
|
||||||
filename))])))
|
filename))])))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user