set window title to sim name
This commit is contained in:
2026-02-14 14:31:07 +01:00
parent 59c2303ce0
commit 49ded19fe9
+4
View File
@@ -6,6 +6,10 @@ Simulator_base::Simulator_base(QString sim_name, Web_socket_wrapper *web_socket,
: QMainWindow{parent}, m_error_dialog(new NetworkError(this)), m_timer_update(new QTimer()), : QMainWindow{parent}, m_error_dialog(new NetworkError(this)), m_timer_update(new QTimer()),
m_web_socket(web_socket), m_sim_name(sim_name) m_web_socket(web_socket), m_sim_name(sim_name)
{ {
if (windowTitle() != m_sim_name)
{
setWindowTitle(m_sim_name);
}
m_error_dialog->set_error("Connection timed out\nCheck if the server is running"); m_error_dialog->set_error("Connection timed out\nCheck if the server is running");
m_ui_lookup.reserve(40); m_ui_lookup.reserve(40);
} }