fix: enable m_actionStopCore based on cores state
This commit is contained in:
parent
b96619d726
commit
19724e3b69
1 changed files with 3 additions and 2 deletions
|
|
@ -1230,10 +1230,11 @@ void MainWindow::daemonIpcClientConnectionFailed()
|
||||||
|
|
||||||
void MainWindow::toggleCanRunCore(bool enableButtons)
|
void MainWindow::toggleCanRunCore(bool enableButtons)
|
||||||
{
|
{
|
||||||
|
const bool isStarted = m_coreProcess.isStarted();
|
||||||
ui->btnToggleCore->setEnabled(enableButtons);
|
ui->btnToggleCore->setEnabled(enableButtons);
|
||||||
ui->btnRestartCore->setEnabled(enableButtons && m_coreProcess.isStarted());
|
ui->btnRestartCore->setEnabled(enableButtons && isStarted);
|
||||||
m_actionStartCore->setEnabled(enableButtons);
|
m_actionStartCore->setEnabled(enableButtons);
|
||||||
m_actionStopCore->setEnabled(enableButtons);
|
m_actionStopCore->setEnabled(enableButtons && isStarted);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::remoteHostChanged(const QString &newRemoteHost)
|
void MainWindow::remoteHostChanged(const QString &newRemoteHost)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue