mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-27 21:48:22 +00:00
Adding ctrl-shift-alt-r hotkey for reconnecting.
This is effectively the same as clicking on the connection status button, clicking discard, and then clicking reconnect.
This commit is contained in:
@@ -648,6 +648,16 @@ bool View::Draw()
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
|
||||
if( !m_staticView &&
|
||||
( ImGui::IsModKey( ImGuiKey_LeftCtrl ) || ImGui::IsModKey( ImGuiKey_RightCtrl ) ) &&
|
||||
( ImGui::IsModKey( ImGuiKey_LeftShift ) || ImGui::IsModKey( ImGuiKey_RightShift ) ) &&
|
||||
( ImGui::IsModKey( ImGuiKey_LeftAlt ) || ImGui::IsModKey( ImGuiKey_RightAlt ) ) &&
|
||||
ImGui::IsKeyPressed( ImGuiKey_R ) )
|
||||
{
|
||||
m_reconnectRequested = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
s_time += ImGui::GetIO().DeltaTime;
|
||||
return DrawImpl();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user