Focus the manual window on chapter change.

This commit is contained in:
Bartosz Taudul
2026-05-27 21:52:46 +02:00
parent 800334a953
commit b682a77f82

View File

@@ -15,6 +15,7 @@ void View::DrawManual()
{
const auto scale = GetScale();
ImGui::SetNextWindowSize( ImVec2( 1200 * scale, 800 * scale ), ImGuiCond_FirstUseEver );
if( m_manualPositionReset ) ImGui::SetNextWindowFocus();
ImGui::Begin( "User manual", &m_showManual );
if( ImGui::GetCurrentWindowRead()->SkipItems ) { ImGui::End(); return; }