refactor: MainWindow do not allow the computer name to be edited if the core is running
This commit is contained in:
parent
3db4c60155
commit
9aeb04b4a6
1 changed files with 3 additions and 1 deletions
|
|
@ -859,8 +859,10 @@ void MainWindow::updateStatus()
|
|||
const auto connection = m_coreProcess.connectionState();
|
||||
const auto process = m_coreProcess.processState();
|
||||
const bool isServer = (m_coreProcess.mode() == CoreMode::Server);
|
||||
if (process == Stopped || process == Started)
|
||||
if (process == Stopped || process == Started) {
|
||||
updateNetworkInfo();
|
||||
ui->btnEditName->setVisible(process == Stopped);
|
||||
}
|
||||
m_statusBar->setStatus(connection, process, isServer);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue