Connect crash_popup_confirmed signal automatically

This commit is contained in:
Julian Murgia committed 2021-11-18 21:49:33 +01:00
1 parent 7e02c27aba
commit d9932e964a
1 file changed
+2 -3
@@ -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