Trying to refresh the menus

This commit is contained in:
FlightControl_Master 2017-12-13 23:20:04 +01:00
parent ce61e8d859
commit abbb59efb9

View File

@ -731,6 +731,7 @@ function DATABASE:_EventOnBirth( Event )
end
if Event.IniObjectCategory == 1 then
Event.IniUnit = self:FindUnit( Event.IniDCSUnitName )
Event.IniGroup = self:FindGroup( Event.IniDCSGroupName )
local PlayerName = Event.IniUnit:GetPlayerName()
self:E( { "PlayerName:", PlayerName } )
if PlayerName ~= "" then
@ -740,6 +741,7 @@ function DATABASE:_EventOnBirth( Event )
end
local Settings = SETTINGS:Set( PlayerName )
Settings:SetPlayerMenu( Event.IniUnit )
MENU_INDEX:Refresh( Event.IniGroup )
end
end
end