Fix Quit call for Linux

This commit is contained in:
Bruno Herbelin
2022-01-17 23:55:44 +01:00
parent 6b4781b7d5
commit 625e2305ba

View File

@@ -239,7 +239,8 @@ void UserInterface::handleKeyboard()
if (ImGui::IsKeyPressed( GLFW_KEY_Q )) { if (ImGui::IsKeyPressed( GLFW_KEY_Q )) {
// try quit // try quit
TryClose(); if ( TryClose() )
Rendering::manager().close();
} }
else if (ImGui::IsKeyPressed( GLFW_KEY_O )) { else if (ImGui::IsKeyPressed( GLFW_KEY_O )) {
// SHIFT + CTRL + O : reopen current session // SHIFT + CTRL + O : reopen current session