mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-10-27 02:54:36 +00:00
service/pam: send completed messages after destroying pam conv
Allows context to be restarted in a complete handler.
This commit is contained in:
1 file changed
+2
-2
@@ -201,14 +201,14 @@ bool PamContext::messageIsError() const { return this->mMessageIsError; }
|
||||
bool PamContext::isResponseRequired() const { return this->mIsResponseRequired; }
|
||||
|
||||
void PamContext::onCompleted(PamResult::Enum result) {
|
||||
emit this->completed(result);
|
||||
this->abortConversation();
|
||||
emit this->completed(result);
|
||||
}
|
||||
|
||||
void PamContext::onError(PamError::Enum error) {
|
||||
this->abortConversation();
|
||||
emit this->error(error);
|
||||
emit this->completed(PamResult::Error);
|
||||
this->abortConversation();
|
||||
}
|
||||
|
||||
void PamContext::onMessage(
|
||||
|
||||
Reference in new issue
Block a user