Various cleaning

This commit is contained in:
Adrien Ufferte
2025-04-24 10:00:18 +02:00
parent d8635d4d78
commit a4e76bb9dd
6 changed files with 34 additions and 35 deletions
-2
View File
@@ -188,7 +188,6 @@ func _notification(what):
if not _is_paused:
_pause_start = Time.get_ticks_msec() / 1000.0
_is_paused = true
print("⏸️ Pause detected at %.2f" % _pause_start)
NOTIFICATION_APPLICATION_FOCUS_IN:
if _is_paused:
@@ -196,7 +195,6 @@ func _notification(what):
var pause_duration = resumed - _pause_start
_elapsed_paused += pause_duration
_is_paused = false
print("▶️ Resume, pause duration %.2f sec, total pause : %.2f sec" % [pause_duration, _elapsed_paused])
#endregion
#region Ending