Skip to content

Commit

Permalink
Fixed various bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Oct 19, 2024
1 parent a22acc2 commit 3a7092c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions data/refresh.lua
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function refresh:StartUpdate(ctx)
items:RefreshBackpack(ctx)
else
self.isUpdateRunning = false
ctx:Cancel()
-- ctx:Cancel()
end

end
Expand Down Expand Up @@ -257,7 +257,7 @@ function refresh:OnEnable()
if next(self.UpdateQueue) ~= nil then
self:StartUpdate(ctx)
else
ctx:Cancel()
-- ctx:Cancel()
end
end)

Expand Down
12 changes: 7 additions & 5 deletions forms/layouts/stacked.lua
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,13 @@ function stackedLayout:addDropdownClassic(opts)
end
end)

for _, item in ipairs(opts.items) do
local ctx = context:New('Dropdown_Load')
if opts.getValue(ctx, item) then
UIDropDownMenu_SetText(container.classicDropdown, item)
break
if opts.items ~= nil then
for _, item in ipairs(opts.items) do
local ctx = context:New('Dropdown_Load')
if opts.getValue(ctx, item) then
UIDropDownMenu_SetText(container.classicDropdown, item)
break
end
end
end

Expand Down

0 comments on commit 3a7092c

Please sign in to comment.