From 9aeb04b4a6e1a82fdd759ccd65de011b1f35ea7c Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Mon, 23 Feb 2026 21:18:38 -0500 Subject: [PATCH] refactor: MainWindow do not allow the computer name to be edited if the core is running --- src/lib/gui/MainWindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp index adf711829..fb1309f6e 100644 --- a/src/lib/gui/MainWindow.cpp +++ b/src/lib/gui/MainWindow.cpp @@ -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); }