fix: enable m_actionStopCore based on cores state

This commit is contained in:
sithlord48
2026-02-14 12:01:37 -05:00
committed by Nick Bolton
parent b96619d726
commit 19724e3b69

View File

@ -1230,10 +1230,11 @@ void MainWindow::daemonIpcClientConnectionFailed()
void MainWindow::toggleCanRunCore(bool enableButtons)
{
const bool isStarted = m_coreProcess.isStarted();
ui->btnToggleCore->setEnabled(enableButtons);
ui->btnRestartCore->setEnabled(enableButtons && m_coreProcess.isStarted());
ui->btnRestartCore->setEnabled(enableButtons && isStarted);
m_actionStartCore->setEnabled(enableButtons);
m_actionStopCore->setEnabled(enableButtons);
m_actionStopCore->setEnabled(enableButtons && isStarted);
}
void MainWindow::remoteHostChanged(const QString &newRemoteHost)