Quantcast

#75: Lock/Unlock the arrow from the context menu.

Ludovicus [10-19-19 - 21:20]
#75: Lock/Unlock the arrow from the context menu.
Filename
TomTom_CrazyArrow.lua
diff --git a/TomTom_CrazyArrow.lua b/TomTom_CrazyArrow.lua
index b8d520b..3457173 100755
--- a/TomTom_CrazyArrow.lua
+++ b/TomTom_CrazyArrow.lua
@@ -392,6 +392,16 @@ local dropdown_info = {
 				end
 			end,
 		},
+		{
+			-- Lock Arrow
+			text = L["Arrow locked"],
+			checked = function () return TomTom.db.profile.arrow.lock; end,
+			func = function ()
+				TomTom.db.profile.arrow.lock = not TomTom.db.profile.arrow.lock
+				TomTom:ShowHideCrazyArrow()
+			end,
+			isNotRadio = true,
+		}
 	},
     [2] = {
         send = {