fix: ensure session logout always returns to greeter
Problem
The MR fixes the issue where some time user was sent back to the home screen even after logging out. check issue here
Cause
There was a race condition in Dialogs.qml:
-
Qt.quit()
was called beforelomiriSessionService.endSession()
thus sometimes endsession was not processed fully - This sometimes bypassed the greeter and started a new session directly thinking that session was still active
Fix
Reordered the calls so endSession()
happens first, followed by Qt.quit()
.