mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-18 23:05:23 +00:00
Get role string only once.
This commit is contained in:
@@ -183,8 +183,9 @@ void TracyLlm::Draw()
|
||||
const auto mw = std::max( { uw, rw, ew } );
|
||||
|
||||
const auto posStart = ImGui::GetCursorPos().x;
|
||||
const auto isUser = line["role"].get<std::string>() == "user";
|
||||
const auto isError = line["role"].get<std::string>() == "error";
|
||||
const auto role = line["role"].get<std::string>();
|
||||
const auto isUser = role == "user";
|
||||
const auto isError = role == "error";
|
||||
|
||||
float diff, offset;
|
||||
if( isUser )
|
||||
|
||||
Reference in New Issue
Block a user