refactor: remove unneeded using ProcessState in coreprocess::startprocess

This commit is contained in:
sithlord48 2025-04-02 18:02:03 -04:00 committed by Chris Rizzitello
parent 6e6892b6e7
commit a04568b25f

View file

@ -254,9 +254,7 @@ void CoreProcess::startForegroundProcess(const QString &app, const QStringList &
void CoreProcess::startProcessFromDaemon(const QString &app, const QStringList &args) void CoreProcess::startProcessFromDaemon(const QString &app, const QStringList &args)
{ {
using enum ProcessState; if (m_processState != ProcessState::Starting) {
if (m_processState != Starting) {
qFatal("core process must be in starting state"); qFatal("core process must be in starting state");
} }
@ -269,7 +267,7 @@ void CoreProcess::startProcessFromDaemon(const QString &app, const QStringList &
return; return;
} }
setProcessState(Started); setProcessState(ProcessState::Started);
} }
void CoreProcess::stopForegroundProcess() const void CoreProcess::stopForegroundProcess() const