@@ -529,7 +529,7 @@ function DevTool:UIUpdateMainTableButton(element, info, id)
529529
530530 element .nameButton :SetPoint (" LEFT" , element .rowNumberButton , " RIGHT" , 10 * info .indentation - 10 , 0 )
531531
532- element .valueButton :SetText (DevTool .ToUIString (info .value , info .name , true ))
532+ element .valueButton :GetFontString (): SetText (DevTool .ToUIString (info .value , info .name , true ))
533533 element .nameButton :SetText (tostring (info .name ))
534534 element .rowNumberButton :SetText (tostring (id ))
535535
@@ -765,16 +765,16 @@ function DevTool:ProcessCallFunctionData(ok, info, parent, args, results)
765765 -- for example 1, 2, nil, 4 should return only this 4 values nothing more, nothing less.
766766 local found = false
767767 for i = 10 , 1 , - 1 do
768- local result = DevTool . secretToString ( results [i ])
768+ local result = results [i ]
769769 if result ~= nil then
770770 found = true
771771 end
772772
773773 if found or i == 1 then
774774 -- if found some return or if return is nil
775- table.insert ( elements , self :NewElement (result , string.format (" return: %d" , i ), indentation ) )
775+ elements [ i ] = self :NewElement (result , string.format (" return: %d" , i ), indentation )
776776
777- returnFormattedStr = string.format (" %s (%s)%s" , tostring (result ),
777+ returnFormattedStr = string.format (" %s (%s)%s" , DevTool . secretToString (result ),
778778 self .colors .lightblue :WrapTextInColorCode (type (result )), returnFormattedStr )
779779 end
780780 end
@@ -791,8 +791,8 @@ function DevTool:ProcessCallFunctionData(ok, info, parent, args, results)
791791
792792 self :UpdateMainTableUI ()
793793
794- -- print info to chat
795- self : Print ( stateStr (ok ) .. " " .. fnNameWithArgs .. self .colors .gray :WrapTextInColorCode (" returns:" ) .. returnFormattedStr )
794+ -- print info to chat (not using self:Print since AceConsole:Print currently doesn't support secrets)
795+ print ( " |cff33ff99DevTool|r: " , stateStr (ok ), fnNameWithArgs , self .colors .gray :WrapTextInColorCode (" returns:" ), returnFormattedStr )
796796end
797797
798798---- -------------------------------------------------------------------------------------------
0 commit comments