Turned "randomize" into a context menu entry instead of using the TTS event
This commit is contained in:
parent
7d27903761
commit
4f132c2284
@ -248,6 +248,8 @@ function addContextMenu()
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
self.addContextMenuItem("Randomize", randomize)
|
||||
end
|
||||
|
||||
function updateClass(newClass)
|
||||
@ -292,7 +294,7 @@ function isClassName(str)
|
||||
return false
|
||||
end
|
||||
|
||||
function onRandomize()
|
||||
function randomize()
|
||||
local newSymbol = listOfSymbols[math.random(1, #listOfSymbols)]
|
||||
|
||||
while newSymbol == "None" do
|
||||
|
Loading…
Reference in New Issue
Block a user