refactor: CoreProcess add signal for when the security level text changes

This commit is contained in:
sithlord48
2026-02-23 16:27:39 -05:00
committed by Nick Bolton
parent c791135160
commit 07de9efe7c
2 changed files with 6 additions and 1 deletions

View File

@ -498,7 +498,11 @@ bool CoreProcess::checkSecureSocket(const QString &line)
}
Q_EMIT secureSocket(true);
m_secureSocketVersion = line.mid(index + tlsCheckString.size());
if (const auto ssv = line.mid(index + tlsCheckString.size()); ssv != m_secureSocketVersion) {
m_secureSocketVersion = ssv;
Q_EMIT securityLevelChanged(ssv);
}
return true;
}

View File

@ -88,6 +88,7 @@ Q_SIGNALS:
void processStateChanged(deskflow::core::ProcessState state);
void secureSocket(bool enabled);
void daemonIpcClientConnectionFailed();
void securityLevelChanged(QString securityLevel);
private Q_SLOTS:
void onProcessFinished(int exitCode, QProcess::ExitStatus);