From d9932e964aebed7e26069d4462a34d65d0761e06 Mon Sep 17 00:00:00 2001 From: Julian Murgia Date: Thu, 18 Nov 2021 21:49:33 +0100 Subject: [PATCH] Connect crash_popup_confirmed signal automatically --- addons/escoria-core/game/core-scripts/esc_game.gd | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/escoria-core/game/core-scripts/esc_game.gd b/addons/escoria-core/game/core-scripts/esc_game.gd index 7953f70f..f1dead67 100644 --- a/addons/escoria-core/game/core-scripts/esc_game.gd +++ b/addons/escoria-core/game/core-scripts/esc_game.gd @@ -39,7 +39,8 @@ var tooltip_node: Object # Ready function func _ready(): escoria.apply_settings(escoria.settings) - + connect("crash_popup_confirmed", escoria, "quit", + [], CONNECT_ONESHOT) # Handle debugging visualizations func _draw(): @@ -315,8 +316,6 @@ func hide_main_menu(): # # - files: Array of strings containing the paths to the files generated on crash func show_crash_popup(files: Array = []) -> void: - connect("crash_popup_confirmed", escoria, "quit", - [], CONNECT_ONESHOT) var crash_popup = AcceptDialog.new() crash_popup.popup_exclusive = true crash_popup.pause_mode = Node.PAUSE_MODE_PROCESS