Skip to content

Commit

Permalink
[misc] fixed an issue where both introduction windows would take focus
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Jan 15, 2025
1 parent 235f2a9 commit dfed245
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions editor/EditorWindows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ namespace
ImGui::SetNextWindowSize(ImVec2(width, height), ImGuiCond_Always);

// set focus
ImGui::SetNextWindowFocus();
if (ImGui::Begin("What should you expect", &visible, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize))
{
ImGui::TextWrapped("This isn't an engine for the average user, it's designed for advanced research and experimentation, ideal for industry veterans looking to experiment.");
Expand All @@ -85,7 +84,6 @@ namespace
ImGui::SetNextWindowSize(ImVec2(width, height), ImGuiCond_Always);

// set focus
ImGui::SetNextWindowFocus();
if (ImGui::Begin("Support Spartan Engine", &visible, ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize))
{
ImGui::TextWrapped(
Expand Down

0 comments on commit dfed245

Please sign in to comment.