feat: link busy state with lock icon

This commit is contained in:
semenov
2025-11-21 10:16:06 +03:00
parent bbef1f73b4
commit 73fd93a834
6 changed files with 32 additions and 11 deletions

View File

@@ -234,6 +234,20 @@ void ServerLMSWidget::on_btnSettings_clicked()
}
}
void ServerLMSWidget::slot_trySetServerState(PacketType packetType)
{
if (packetType == PacketType::BUSY)
{
server->blockAutorization();
updateStateServer();
}
else if (packetType == PacketType::FREE)
{
server->unBlockAutorization();
updateStateServer();
}
}
void ServerLMSWidget::setLanguageInterfase()
{
ServerDBSettings settings;
@@ -311,6 +325,7 @@ void ServerLMSWidget::startInitialization()
commonClientHandler = new CommonClientHandler;
connect(this,&ServerLMSWidget::signal_DocsChanged,commonClientHandler, &CommonClientHandler::slot_DocsChanged);
connect(commonClientHandler,&CommonClientHandler::sigSetServerState,this,&ServerLMSWidget::slot_trySetServerState);
server = new MultiThreadServer(this,updateController,processingSystem,dataParser,6000);