mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Trying to refresh the menus
This commit is contained in:
parent
ce61e8d859
commit
abbb59efb9
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user