Skip to content

Commit

Permalink
Fixed a logical not problem from copying other code as a template
Browse files Browse the repository at this point in the history
GovtGeek committed Jul 28, 2024
1 parent 12dbfd2 commit efad84a
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Outfitter.lua
Original file line number Diff line number Diff line change
@@ -2569,7 +2569,7 @@ function Outfitter:SetShowMinimapButton(pShowButton)
end

function Outfitter:SetQuickslotFlyouts(pShowButton)
self.Settings.Options.QuickslotFlyouts = not pShowButton
self.Settings.Options.QuickslotFlyouts = pShowButton
self:Update(false)
end

4 changes: 2 additions & 2 deletions OutfitterQuickSlots.lua
Original file line number Diff line number Diff line change
@@ -33,12 +33,12 @@ function Outfitter._FlyoutQuickSlots:Construct()
end

function Outfitter._FlyoutQuickSlots:PreClick(pButton, ...)
if Outfitter.Settings.Options.QuickslotFlyouts then return end
if not Outfitter.Settings.Options.QuickslotFlyouts then return end
self.CurrentInventorySlot = Outfitter.cSlotIDToInventorySlot[pButton:GetID()]
end

function Outfitter._FlyoutQuickSlots:PostClick(pButton, ...)
if Outfitter.Settings.Options.QuickslotFlyouts then return end
if not Outfitter.Settings.Options.QuickslotFlyouts then return end
local vSlotItemLink = Outfitter:GetInventorySlotIDLink(pButton.id or pButton:GetID())

if EquipmentFlyoutFrame:IsVisible() and EquipmentFlyoutFrame.button == pButton then

0 comments on commit efad84a

Please sign in to comment.