registration: do not show dialog at end of registration

Change-Id: I295292b0f716bee6e7b710662271866780461c88
parent 470dfeba
......@@ -408,6 +408,7 @@ build_view(UsernameRegistrationBox *view, gboolean register_button)
&lrc::api::NewAccountModel::nameRegistrationEnded,
[=] (const std::string& accountId, lrc::api::account::RegisterNameStatus status, const std::string& name) {
if (accountId != (*priv->accountInfo_)->id) return;
if (name == "") return;
gtk_spinner_stop(GTK_SPINNER(priv->spinner));
gtk_widget_hide(priv->spinner);
gtk_widget_set_sensitive(priv->entry_username, TRUE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment