From bf78be45e3dfe3e895bf9c803278c5fbb1139107 Mon Sep 17 00:00:00 2001 From: ackis Date: Wed, 18 Feb 2009 03:44:19 +0000 Subject: [PATCH] Ticket 370 and also make the reset button non-accessible when you don't have tomtom --- ARLConfig.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ARLConfig.lua b/ARLConfig.lua index 4ea7937..8ca0128 100644 --- a/ARLConfig.lua +++ b/ARLConfig.lua @@ -1200,7 +1200,7 @@ local function fullOptions() type = "toggle", name = L["World Map"], desc = L["WORLDMAP_DESC"], - disable = tomtomsupport, + disabled = tomtomsupport, get = function() return addon.db.profile.worldmap end, set = function() addon.db.profile.worldmap = not addon.db.profile.worldmap end, }, @@ -1209,7 +1209,7 @@ local function fullOptions() type = "toggle", name = L["Mini Map"], desc = L["MINIMAP_DESC"], - disable = tomtomsupport, + disabled = tomtomsupport, get = function() return addon.db.profile.minimap end, set = function() addon.db.profile.minimap = not addon.db.profile.minimap end, }, @@ -1217,6 +1217,7 @@ local function fullOptions() order = 65, type = "execute", name = L["Clear Waypoints"], + disabled = tomtomsupport, desc = L["CLEAR_WAYPOINTS_DESC"], func = function(info) addon:ClearMap() end, }, -- 1.7.9.5