Skip to content

Commit

Permalink
Merge pull request #554 from Arnklit/remove-missing-recent
Browse files Browse the repository at this point in the history
Remove file from recent list if it fails to load
  • Loading branch information
RodZill4 authored Dec 19, 2022
2 parents 4435581 + b882909 commit 0034e3e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions material_maker/main_window.gd
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,9 @@ func do_load_project(file_name) -> bool:
hierarchy.update_from_graph_edit(get_current_graph_edit())
"mmpp":
status = do_load_painting(file_name)
var dir = Directory.new()
if !dir.file_exists(file_name):
status = false
if status:
add_recent(file_name)
else:
Expand Down

0 comments on commit 0034e3e

Please sign in to comment.