Prevent changing the Vehicle UI option while on a vehicle to avoid serious breakage.
This commit is contained in:
parent
a437ca9c5a
commit
397fe7dbf4
1 changed files with 4 additions and 0 deletions
|
|
@ -80,6 +80,10 @@ local function getOptions()
|
|||
width = "full",
|
||||
get = getFunc,
|
||||
set = function(info, value)
|
||||
if UnitHasVehicleUI("player") then
|
||||
Bartender4:Print(L["You have to exit the vehicle in order to be able to change the Vehicle UI settings."])
|
||||
return
|
||||
end
|
||||
Bartender4.db.profile.blizzardVehicle = value
|
||||
Bartender4:UpdateBlizzardVehicle()
|
||||
end,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue