Skip to content

Commit

Permalink
fix inconsistent save trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
fian46 committed Sep 17, 2020
1 parent 96809bc commit 83a435e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addons/btree/init.gd
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ func make_visible(visible):
dock.show()
else:
var graph = dock.get_node("editor/graph")
graph._on_save_pressed()
graph.active = false
graph.clear_data()
graph.reload()
dock.hide()
return

func apply_changes():
# why you behave not consistent ? please fix this
var graph = dock.get_node("editor/graph")
graph._on_save_pressed()
return
Expand Down

0 comments on commit 83a435e

Please sign in to comment.