Skip to content

Commit

Permalink
refact: only restart greeter under release build
Browse files Browse the repository at this point in the history
Signed-off-by: ComixHe <[email protected]>
  • Loading branch information
ComixHe authored and justforlxz committed Jan 5, 2024
1 parent a55dbb5 commit c4a8411
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/daemon/Greeter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ namespace SDDM {
m_auth = nullptr;

//NOTE: remove this in future
#ifdef NDEBUG
if (status != Auth::HELPER_SUCCESS and m_maxRetry-- > 0) {
stop();
qInfo() << "restart Greeter...";
Expand All @@ -333,6 +334,7 @@ namespace SDDM {
}
return;
}
#endif

if (status == Auth::HELPER_DISPLAYSERVER_ERROR) {
Q_EMIT displayServerFailed();
Expand Down

0 comments on commit c4a8411

Please sign in to comment.