Skip to content

Commit

Permalink
Fix the broken resource sharing panel (FAForever#4370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hdt80bro authored Nov 9, 2022
1 parent a18be95 commit 67be0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/ui/game/diplomacy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ local function LayoutMajorAlliedEntry(entry, manualShare)
Tooltip.AddButtonTooltip(giveResourcesBtn, 'dip_give_resources')
entry.giveResourcesBtn = giveResourcesBtn

giveResourcesBtn:Disable()
giveResourcesBtn.OnClick = function(self, modifiers)
CreateShareResourcesDialog(entry)
end
Expand Down Expand Up @@ -598,6 +597,7 @@ function CreateShareResourcesDialog(control)
giveResGroup.Width:Set(control.Width)
LayoutHelpers.SetHeight(giveResGroup, 90)
LayoutHelpers.AtLeftBottomIn(giveResGroup, control)
control.giveResourcesGroup = giveResGroup

local okBtn = UIUtil.CreateButtonStd(giveResGroup,
'/dialogs/toggle_btn/toggle-d',
Expand Down

0 comments on commit 67be0de

Please sign in to comment.