slot_StateServer

This commit is contained in:
2026-02-09 11:45:04 +03:00
parent d27ab62114
commit 0d287113e1

View File

@@ -302,6 +302,10 @@ void ServerLMSWidget::slot_StateServer(EStateServer stateServer, EStateBlockAuto
{ {
if(this->state_Server != stateServer) if(this->state_Server != stateServer)
{ {
this->state_Server = stateServer;
this->state_BlockAutorization = stateBlockAutorization;
updateStateOnlyServer();
if(stateServer == EStateServer::started) if(stateServer == EStateServer::started)
{ {
ui->btnStartServer->setEnabled(false); ui->btnStartServer->setEnabled(false);
@@ -315,10 +319,13 @@ void ServerLMSWidget::slot_StateServer(EStateServer stateServer, EStateBlockAuto
emit signal_Tray_ShowMessage(tr("Server is stoped!")); emit signal_Tray_ShowMessage(tr("Server is stoped!"));
} }
} }
else
{
this->state_Server = stateServer; this->state_Server = stateServer;
this->state_BlockAutorization = stateBlockAutorization; this->state_BlockAutorization = stateBlockAutorization;
updateStateOnlyServer(); updateStateOnlyServer();
} }
}
void ServerLMSWidget::slot_StateVersionMaterials(QString versionStr) void ServerLMSWidget::slot_StateVersionMaterials(QString versionStr)
{ {