From 903a801ba9d692e6d1d7c639e5c260258f99f8c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Mon, 20 May 2024 09:18:33 +0300 Subject: [PATCH] add toast history *before* emitting toast signal --- classes/deck/logger.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/deck/logger.gd b/classes/deck/logger.gd index 313c655..9e22d76 100644 --- a/classes/deck/logger.gd +++ b/classes/deck/logger.gd @@ -59,12 +59,12 @@ func toast_error(text: String) -> void: func toast(text: String, type: LogType) -> void: - log_toast.emit(text, type) toast_history.append( { "text": text, "type": type, } ) + log_toast.emit(text, type) if OS.has_feature("editor"): prints("(t)", LogType.keys()[type].capitalize(), text)