Prevent changing the Vehicle UI option while on a vehicle to avoid serious breakage.

This commit is contained in:
Hendrik Leppkes
2009-03-26 10:04:41 +01:00
parent a437ca9c5a
commit 397fe7dbf4
+4
View File
@@ -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,