Skip to content

Commit

Permalink
Fixed dead widget update issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirMallard committed Jan 4, 2025
1 parent 14c0fa3 commit 274724f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Internal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ return function(Iris: Types.Iris): Types.Internal
self.value = newValue
self.lastChangeTick = Iris.Internal._cycleTick
for _, thisWidget: Types.Widget in self.ConnectedWidgets do
Internal._widgets[thisWidget.type].UpdateState(thisWidget)
if thisWidget.lastCycleTick ~= -1 then
Internal._widgets[thisWidget.type].UpdateState(thisWidget)
end
end

for _, callback in self.ConnectedFunctions do
Expand Down

0 comments on commit 274724f

Please sign in to comment.