Don't remove a recent entry if it doesn't exist

This commit is contained in:
CorpNewt
2023-04-23 08:53:49 -05:00
committed by GitHub
parent 57983ebf68
commit fae421d83c
-1
View File
@@ -1022,7 +1022,6 @@ class ProperTree:
return
path = os.path.normpath(path)
if not (os.path.exists(path) and os.path.isfile(path)):
self.rem_recent(path)
self.tk.bell()
mb.showerror("An Error Occurred While Opening {}".format(os.path.basename(path)), "The path '{}' does not exist.".format(path))
return