Skip to content

Commit

Permalink
Fix assert in notification icon button
Browse files Browse the repository at this point in the history
- Used old ui.iconButton() parameter list by accident
  • Loading branch information
sturnclaw committed Jan 8, 2025
1 parent f31402d commit ce3d102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/pigui/libs/notification.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce3d102

Please sign in to comment.