mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +00:00
Include only existent files in RecentFiles list
This commit is contained in:
parent
e0f6b2fed4
commit
1f7a8bde64
@ -21,6 +21,7 @@
|
||||
#include "recent_files.h"
|
||||
|
||||
#include "app_menus.h"
|
||||
#include "base/fs.h"
|
||||
#include "base/path.h"
|
||||
#include "ini_file.h"
|
||||
|
||||
@ -38,7 +39,7 @@ RecentFiles::RecentFiles()
|
||||
sprintf(buf, "Filename%02d", c);
|
||||
|
||||
const char* filename = get_config_string("RecentFiles", buf, NULL);
|
||||
if (filename && *filename)
|
||||
if (filename && *filename && base::file_exists(filename))
|
||||
m_files.addItem(filename);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user