Browse Source

fixed issue with tooltips reappearing and getting stuck on redo

Jonathan Higgins 1 month ago
parent
commit
13aa6dc470
1 changed files with 4 additions and 0 deletions
  1. 4 0
      scenes/main/scripts/control.gd

+ 4 - 0
scenes/main/scripts/control.gd

@@ -313,8 +313,10 @@ func _input(event):
 		simulate_mouse_click()
 		await get_tree().process_frame
 		undo_redo.undo()
+		graph_edit.force_hide_tooltips()
 	elif event.is_action_pressed("redo"):
 		undo_redo.redo()
+		graph_edit.force_hide_tooltips()
 	elif event.is_action_pressed("save"):
 		if currentfile == "none":
 			savestate = "saveas"
@@ -883,9 +885,11 @@ func _on_undo_button_button_down() -> void:
 	simulate_mouse_click()
 	await get_tree().process_frame
 	undo_redo.undo()
+	graph_edit.force_hide_tooltips()
 	
 
 func _on_redo_button_button_down() -> void:
 	simulate_mouse_click()
 	await get_tree().process_frame
 	undo_redo.redo()
+	graph_edit.force_hide_tooltips()