Skip to content

Commit

Permalink
Merge pull request #21 from Kirri777:Kirri777/issue20
Browse files Browse the repository at this point in the history
Fix - DoYouNeedThat/Core.lua:1016: attempt to index field 'customTextButton' (a nil value)
  • Loading branch information
Kirri777 authored Nov 9, 2024
2 parents 124bcb9 + 72cc4e6 commit 2549c02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -931,17 +931,7 @@ function AddOn:ClearEntries()

if self.Entries[i].customTextMenu then
self.Entries[i].customTextMenu:Hide()
self.Entries[i].customTextMenu:SetParent(nil)
self.Entries[i].customTextMenu:ClearAllPoints()
self.Entries[i].customTextMenu:UnregisterAllEvents()
self.Entries[i].customTextMenu:SetID(0)
self.Entries[i].customTextMenu = nil
self.Entries[i].customTextButton:Hide()
self.Entries[i].customTextButton:SetParent(nil)
self.Entries[i].customTextButton:ClearAllPoints()
self.Entries[i].customTextButton:UnregisterAllEvents()
self.Entries[i].customTextButton:SetID(0)
self.Entries[i].customTextButton = nil
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion DoYouNeedThat.toc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Title: DoYouNeedThat?
## Author: Kraffs <Numinous-TarrenMill LootCouncil-TarrenMill>
## Version: 1.2.9
## Version: 1.2.10
## Notes: Pesters people for loot because Personal Loot is fun! (Kirri mod)
## OptionalDeps: CanIMogIt
## SavedVariables: DyntDB
Expand Down

0 comments on commit 2549c02

Please sign in to comment.