[Merge] lp:~azzar1/unity/fix-missing-entry-lockscreen into lp:unity

Marco Trevisan (Treviño) mail at 3v1n0.net
Mon Sep 18 20:20:18 UTC 2017



Diff comments:

> 
> === modified file 'lockscreen/UserPromptView.cpp'
> --- lockscreen/UserPromptView.cpp	2016-06-23 14:51:42 +0000
> +++ lockscreen/UserPromptView.cpp	2017-09-15 13:37:27 +0000
> @@ -478,5 +490,29 @@
>    session_manager_->unlock_requested.emit();
>  }
>  
> +void UserPromptView::HandleAuthenticationStartFailure()
> +{
> +  ++num_retry_auth_;
> +
> +  if (num_retry_auth_ <= 5)

Ah, a const def for this would be nicer

> +  {
> +    LOG_WARNING(logger) << "Failed to start the authentication process. Retrying for " << num_retry_auth_ << " time.";
> +    source_manager_.AddTimeout(100, [this] {
> +      StartAuthentication();
> +      return false;
> +    });
> +  }
> +  else
> +  {
> +    num_retry_auth_ = 0;
> +
> +    AddMessage(_("Authentication failure"), nux::color::Red);
> +    AddButton(_("Switch to greeter…"), [this] {
> +      session_manager_->SwitchToGreeter();
> +    });
> +    GetLayout()->AddLayout(button_layout_);
> +  }
> +}
> +
>  }
>  }


-- 
https://code.launchpad.net/~azzar1/unity/fix-missing-entry-lockscreen/+merge/330801
Your team Unity Team is subscribed to branch lp:unity.



More information about the Ubuntu-reviews mailing list