From 19724e3b6965dfb7bb1daad5be47ba25d5e82dfc Mon Sep 17 00:00:00 2001 From: sithlord48 Date: Sat, 14 Feb 2026 12:01:37 -0500 Subject: [PATCH] fix: enable m_actionStopCore based on cores state --- src/lib/gui/MainWindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/gui/MainWindow.cpp b/src/lib/gui/MainWindow.cpp index 745f5fb53..a7365e14d 100644 --- a/src/lib/gui/MainWindow.cpp +++ b/src/lib/gui/MainWindow.cpp @@ -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)