mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-27 19:45:43 +03:00
slot_StateServer
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user