diff --git a/addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.gd b/addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.gd index 86b371656..b524cd014 100644 --- a/addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.gd +++ b/addons/dialogic/Modules/DefaultLayoutParts/Layer_History/history_layer.gd @@ -39,6 +39,7 @@ func _ready() -> void: if Engine.is_editor_hint(): return Dialogic.History.open_requested.connect(_on_show_history_pressed) + Dialogic.History.close_requested.connect(_on_hide_history_pressed) func _apply_export_overrides() -> void: diff --git a/addons/dialogic/Modules/History/subsystem_history.gd b/addons/dialogic/Modules/History/subsystem_history.gd index dd84094f0..e1dc76ef4 100644 --- a/addons/dialogic/Modules/History/subsystem_history.gd +++ b/addons/dialogic/Modules/History/subsystem_history.gd @@ -25,6 +25,7 @@ signal not_read_event_reached signal open_requested +signal close_requested #################################################################################################### ## INITIALIZE @@ -44,6 +45,10 @@ func open_history() -> void: open_requested.emit() +func close_history() -> void: + close_requested.emit() + + #################################################################################################### ## STATE ####################################################################################################