From 625e2305bad7aed59dda083f5b28fff71879c326 Mon Sep 17 00:00:00 2001 From: Bruno Herbelin Date: Mon, 17 Jan 2022 23:55:44 +0100 Subject: [PATCH] Fix Quit call for Linux --- UserInterfaceManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UserInterfaceManager.cpp b/UserInterfaceManager.cpp index 781b40a..4d24959 100644 --- a/UserInterfaceManager.cpp +++ b/UserInterfaceManager.cpp @@ -239,7 +239,8 @@ void UserInterface::handleKeyboard() if (ImGui::IsKeyPressed( GLFW_KEY_Q )) { // try quit - TryClose(); + if ( TryClose() ) + Rendering::manager().close(); } else if (ImGui::IsKeyPressed( GLFW_KEY_O )) { // SHIFT + CTRL + O : reopen current session