16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 11:19:19 +02:00

post-merge fixes

This commit is contained in:
tmj-fstate
2020-02-20 20:28:32 +01:00
parent 7a0c89f508
commit 330bd3c455
24 changed files with 381 additions and 394 deletions

View File

@@ -181,8 +181,14 @@ driver_ui::render_() {
}
if( ImGui::Button( locale::strings[ locale::string::driver_pause_quit ].c_str(), ImVec2( popupwidth, 0 ) ) ) {
ImGui::CloseCurrentPopup();
command_relay commandrelay;
commandrelay.post(user_command::quitsimulation, 0.0, 0.0, GLFW_PRESS, 0);
// NOTE: server shuts down entire network, client or standalone instance only shuts down self
if( Application.is_server() ) {
command_relay commandrelay;
commandrelay.post( user_command::quitsimulation, 0.0, 0.0, GLFW_PRESS, 0 );
}
else {
Application.queue_quit();
}
}
ImGui::EndPopup();
}