Skip to content

Analytics await handle_exit blocks game when scene tree is paused #5

@francoisdlt

Description

@francoisdlt

Typical example :

  • open pause menu
  • scene tree is paused
  • click quit game button
  • await Analytics.handle_exit()
  • get_tree().quit()

the await handle_exit() never yields, game does not quit

solution : set Analytics to PROCESS_MODE_ALWAYS

diff --git a/addons/quiver_analytics/analytics.gd b/addons/quiver_analytics/analytics.gd
--- a/addons/quiver_analytics/analytics.gd
+++ b/addons/quiver_analytics/analytics.gd
@@ -84,4 +84,5 @@
 
 func _ready() -> void:
+	process_mode = PROCESS_MODE_ALWAYS
 	# We attempt to load the saved configuration, if present
 	var err = config.load(config_file_path)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions