Skip to content

Commit

Permalink
Re-add checking if a recent file exists on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
dkobozev committed Mar 13, 2015
1 parent 0d5788d commit 175b567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tatlin.py
Expand Up @@ -92,7 +92,8 @@ def __init__(self):
else:
fpath, ftype = f, None

self.recent_files.append((os.path.basename(fpath), fpath, ftype))
if os.path.exists(fpath):
self.recent_files.append((os.path.basename(fpath), fpath, ftype))
self.recent_files = self.recent_files[:self.RECENT_FILE_LIMIT]

else:
Expand Down

0 comments on commit 175b567

Please sign in to comment.