mirror of
https://codeberg.org/StreamGraph/StreamGraph.git
synced 2024-11-13 19:49:55 +01:00
add toast history *before* emitting toast signal
This commit is contained in:
parent
33425e8436
commit
903a801ba9
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue