refactor: CoreProcess add signal for when the security level text changes
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user