From ce3d102bb51da56696a32b8cb794df4d0cfefeb1 Mon Sep 17 00:00:00 2001 From: Axtel Sturnclaw Date: Wed, 8 Jan 2025 18:50:48 -0500 Subject: [PATCH] Fix assert in notification icon button - Used old ui.iconButton() parameter list by accident --- data/pigui/libs/notification.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/pigui/libs/notification.lua b/data/pigui/libs/notification.lua index f9dfb56f15..7f76fce973 100644 --- a/data/pigui/libs/notification.lua +++ b/data/pigui/libs/notification.lua @@ -162,7 +162,7 @@ local function drawNotification(notif, wrapWidth) -- Draw the close button to the left of the notification in empty space if hovered and not notif.closing then ui.setCursorScreenPos(startPos) - local clicked = ui.iconButton(icons.retrograde, style.closeButtonSize, "##DismissNotification", ui.theme.buttonColors.transparent) + local clicked = ui.iconButton("DismissNotification", icons.retrograde, nil, ui.theme.buttonColors.transparent, style.closeButtonSize) if clicked then notif.closing = 0.0